Closed TomNicholas closed 1 day ago
Attention: Patch coverage is 37.50000%
with 10 lines
in your changes missing coverage. Please review.
Project coverage is 93.30%. Comparing base (
3348670
) to head (41ec08f
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
🚨 Try these New Features:
I've changed this PR to use virtual_backend_kwargs
instead of reader_kwargs
, which is closer to xarray's equivalent backend_kwargs
, and also makes it less similar to reader_options
. We should discuss this choice before implementing #245 though (as then it will become harder to change).
For https://github.com/zarr-developers/VirtualiZarr/pull/243#issuecomment-2492341326 we need to pass a
fs_root
kwarg down to some but not all readers. We will have other reader-specific kwargs like this come up in future too. To be in keeping withxarray.open_dataset
's API these should be passed as a dict calledreader_kwargs
orbackend_kwargs
.However there is an existing
reader_options
kwarg, which is meant to be specifically forfsspec
options. Having bothreader_options
andreader_kwargs
would be confusing, so should we a) renamereader_options
toreader_kwargs
, having it include fsspec options too, b) havereader_kwargs
andfsspec_kwargs
, deprecatingreader_options
?So far this PR just adds a
reader_kwargs
option to all backends, but raises if it is used.cc @norlandrhagen @sharkinsspatial
docs/releases.rst
api.rst