Skip to content

Commit f5cb4ca

Browse files
authored
Support for zarr 3.1+
> Removes support for passing keyword-only arguments positionally to the following functions and methods: save_array, open, group, open_group, create, get_basic_selection, set_basic_selection, get_orthogonal_selection, set_orthogonal_selection, get_mask_selection, set_mask_selection, get_coordinate_selection, set_coordinate_selection, get_block_selection, set_block_selection, Group.create_array, Group.empty, Group.zeroes, Group.ones, Group.empty_like, Group.full, Group.zeros_like, Group.ones_like, Group.full_like, Group.array. Prior to this change, passing a keyword-only argument positionally to one of these functions or methods would raise a deprecation warning. That warning is now gone. Passing keyword-only arguments to these functions and methods positionally is now an error.
1 parent 6162853 commit f5cb4ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyresample/bilinear/xarr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def save_resampling_info(self, filename):
210210
def load_resampling_info(self, filename):
211211
"""Load bilinear resampling look-up tables and initialize the resampler."""
212212
try:
213-
fid = zarr.open(filename, 'r')
213+
fid = zarr.open(filename, mode='r')
214214
for val in BIL_COORDINATES:
215215
cache = da.array(fid[val])
216216
setattr(self, val, cache)

0 commit comments

Comments
 (0)