Skip to content

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

Open
Xunius wants to merge 1 commit intoCDAT:masterfrom
Xunius:issue416
Open

fix issue #416 by adding more integer type checks#431
Xunius wants to merge 1 commit intoCDAT:masterfrom
Xunius:issue416

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