MCPcopy Index your code
hub / github.com/pydata/xarray / _getitem

Method _getitem

xarray/backends/pydap_.py:55–61  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

53 )
54
55 def _getitem(self, key):
56 result = robust_getitem(self.array, key, catch=ValueError)
57 result = np.asarray(result.data)
58 axis = tuple(n for n, k in enumerate(key) if isinstance(k, integer_types))
59 if result.ndim + len(axis) != self.array.ndim and axis:
60 result = np.squeeze(result, axis)
61 return result
62
63
64def get_group(ds, group):

Callers

nothing calls this directly

Calls 2

robust_getitemFunction · 0.90
squeezeMethod · 0.45

Tested by

no test coverage detected