We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff3bfd7 commit e579f46Copy full SHA for e579f46
xrlint/_linter/validate.py
@@ -92,7 +92,13 @@ def _open_dataset(
92
try:
93
t0 = time.time()
94
result = xr.open_datatree(ds_source, engine=engine, **(opener_options or {}))
95
- except (OSError, ValueError, TypeError):
+ # When opening no-group Zarr datasets we get with xarray 2025.1.2:
96
+ #
97
+ # File "<...>/site-packages/xarray/backends/zarr.py", line 741, in __init__
98
+ # self._read_only = self.zarr_group.read_only
99
+ # ^^^^^^^^^^^^^^^^^^^^^^^^^
100
+ # AttributeError: 'NoneType' object has no attribute 'read_only'
101
+ except (OSError, ValueError, TypeError, AttributeError):
102
103
result = xr.open_dataset(ds_source, engine=engine, **(opener_options or {}))
104
return result, time.time() - t0
0 commit comments