Skip to content

Commit 8611dbe

Browse files
committed
Remove code used to support h5py<2.10.0
It seems that the relevant issue was fixed in 2.10.0 h5py/h5py@466181b I'm not sure how far back you want to fix things. I'm hoping to test this on the CI. I found this since I've been auditing slowdowns in our codebase, which has caused me to review much of the reading pipeline.
1 parent 3aa75c8 commit 8611dbe

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

xarray/backends/h5netcdf_.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ def __getitem__(self, key):
4646
)
4747

4848
def _getitem(self, key):
49-
# h5py requires using lists for fancy indexing:
50-
# https://github.com/h5py/h5py/issues/992
51-
key = tuple(list(k) if isinstance(k, np.ndarray) else k for k in key)
5249
with self.datastore.lock:
5350
array = self.get_array(needs_lock=False)
5451
return array[key]

0 commit comments

Comments
 (0)