Skip to content

Commit

Permalink
update StackedBytesArray: revert oindex and vindex
Browse files Browse the repository at this point in the history
  • Loading branch information
andersy005 committed Apr 8, 2024
1 parent 721aaf1 commit aacbe04
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions xarray/coding/strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,6 @@ def shape(self) -> tuple[int, ...]:
def __repr__(self):
return f"{type(self).__name__}({self.array!r})"

def _vindex_get(self, key):
return _numpy_char_to_bytes(self.array.vindex[key])

def _oindex_get(self, key):
return _numpy_char_to_bytes(self.array.oindex[key])

def __getitem__(self, key):
# require slicing the last dimension completely
key = type(key)(indexing.expanded_indexer(key.tuple, self.array.ndim))
Expand Down

0 comments on commit aacbe04

Please sign in to comment.