Skip to content

Commit aa97330

Browse files
committed
FIX: add .open method for file-like objects
1 parent f8b5212 commit aa97330

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xarray/backends/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ def maybe_decode_store(store, lock=False):
527527
if engine == "scipy":
528528
store = backends.ScipyDataStore(filename_or_obj, **backend_kwargs)
529529
elif engine == "h5netcdf":
530-
store = backends.H5NetCDFStore(
530+
store = backends.H5NetCDFStore.open(
531531
filename_or_obj, group=group, lock=lock, **backend_kwargs
532532
)
533533

0 commit comments

Comments
 (0)