Skip to content

Commit

Permalink
Fix NumericColumn._getrowid() for cases when it is called externally
Browse files Browse the repository at this point in the history
  • Loading branch information
smathot committed Nov 21, 2024
1 parent 11360a0 commit 5704927
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions datamatrix/_datamatrix/_numericcolumn.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ def _getrowidkey(self, key, dm=None):

if isinstance(key, Index):
key = key._a
if isinstance(key, (tuple, list)):
key = np.array(key)
# argsort and searchsorted are fairly time-consuming operations which
# need to be performed very often. Therefore we implement a crude
# but fast caching mechanism.
Expand Down

0 comments on commit 5704927

Please sign in to comment.