CDAT / cdms

8 stars 10 forks source link

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

Open Xunius opened 3 years ago

Xunius commented 3 years ago

Attempt to fix issue https://github.com/CDAT/cdms/issues/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.