Skip to content

Commit 2fb22cf

Browse files
authored
Remove code used to support h5py<2.10.0 (#7334)
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 2fb22cf

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

xarray/backends/h5netcdf_.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import io
55
import os
66

7-
import numpy as np
87
from packaging.version import Version
98

109
from ..core import indexing
@@ -46,9 +45,6 @@ def __getitem__(self, key):
4645
)
4746

4847
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)
5248
with self.datastore.lock:
5349
array = self.get_array(needs_lock=False)
5450
return array[key]

0 commit comments

Comments
 (0)