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

[WIP] Accomodate single file recipes #783

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
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
9 changes: 7 additions & 2 deletions tests/test_end_to_end.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,13 @@ def test_xarray_zarr(
)

ds = xr.open_dataset(os.path.join(tmp_target.root_path, "store"), engine="zarr")
assert ds.time.encoding["chunks"] == (target_chunks["time"],)
xr.testing.assert_equal(ds.load(), daily_xarray_dataset)
ds = ds.load()
for dim, chunk_size in target_chunks.items():
assert ds[dim].encoding["chunks"] == (chunk_size,)
for dim, length in ds.sizes.items():
if dim not in target_chunks:
assert len(ds[dim]) == length
xr.testing.assert_equal(ds, daily_xarray_dataset)
Comment on lines +90 to +96
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems useful no matter if we integrate the end-to-end tests or the new functinality!



def test_xarray_zarr_subpath(
Expand Down