Skip to content
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

Adding support for NumPy v1.18.0 #427

Merged
merged 4 commits into from
Jun 7, 2020
Merged

Adding support for NumPy v1.18.0 #427

merged 4 commits into from
Jun 7, 2020

Conversation

adnanhemani
Copy link
Member

[X] Wrote test for feature
[X] Added changes to CHANGELOG.md
[X] Bumped version number (delete if unneeded)

Changes proposed:
Due to the changes between NumPy v1.17.5 -> 1.18.0 (especially noted in this PR: numpy/numpy#14745), some updating is required to our Row's getattr function.

Small tl;dr on the NumPy PR: conversion to a NumPy array via the np.array(..) function would catch any exceptions for the required np.array fields. At v1.18.0, it's now been changed such that it only catches exceptions for AttributeErrors - hence this change.

I'd suggest that the new error message and Exception type is actually better than the one we'd get previously so I think this is the right move to make regardless.

Closes #425.

@coveralls
Copy link

coveralls commented Jun 7, 2020

Coverage Status

Coverage increased (+0.1%) to 76.949% when pulling 8bcac97 on issue_425 into 7b7f81d on master.

@davidwagner davidwagner merged commit 737219e into master Jun 7, 2020
@davidwagner davidwagner deleted the issue_425 branch June 7, 2020 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Table.__getattr__ issue when calling np.array on a Table row
3 participants