-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with negative indexes #13
Comments
Agree - I almost think rectify() should be automatic, and bounds checking on by default. need to test this: if safe:
if not np.all((min_value <= key) & (key <= max_value)):
raise KeyError('blah') Some options analysed here. |
Added in 923009c checks suggest a bit of a performance hit (can be disabled if you are confident in your data), I've also added rectify as an option. |
np.take with mode https://numpy.org/doc/stable/reference/generated/numpy.take.html |
Not sure how I would use it (some of the np docs can't be a bit cryptic for me!). Does that do the same thing as |
From another issue
possible solution:
Can resolve by bounds checking. Possibly use optional bounds checking, like
Table(safe=False)
and I think it is best thatsafe=True
by default. Safe=True performs any important validations that take time and safe=False doesn't?The text was updated successfully, but these errors were encountered: