Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix type used for group argument in xarray tests #1081

Merged
merged 2 commits into from
Jan 27, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix test
  • Loading branch information
maxrjones committed Jan 27, 2025
commit da35bcbfad9f2434fb5dc21b197908346b84a029
4 changes: 2 additions & 2 deletions src/titiler/xarray/tests/test_io_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,13 @@ def test_reader(protocol, filename):

@pytest.mark.parametrize(
"group",
["0", "1", "2"],
[0, 1, 2],
)
def test_zarr_group(group):
"""test reader."""
src_path = os.path.join(prefix, "pyramid.zarr")

with Reader(src_path, variable="dataset", group=group) as src:
with Reader(src_path, variable="dataset", group=str(group)) as src:
assert src.info()
assert src.tile(0, 0, 0)
assert src.point(0, 0).data[0] == group * 2 + 1
Loading