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

fix issue #416 by adding more integer type checks #431

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Xunius
Copy link

@Xunius Xunius commented Apr 1, 2021

Attempt to fix issue #416.

Integers of type numpy.int64 would fail the type check
isinstance(key, int) in specs2slices() in avariable.py.

Change to isinstance(key, (int, numpy.int32, numpy.int64)) to fix
this.

Attempt to fix issue CDAT#416.

Integers of type `numpy.int64` would fail the type check
`isinstance(key, int)` in `specs2slices()` in avariable.py.

Change to `isinstance(key, (int, numpy.int32, numpy.int64))` to fix
this.
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.

1 participant