HERA-Team / aipy

Astronomical Interferometry in PYthon (AIPY)
http://pypi.python.org/pypi/aipy
Other
43 stars 29 forks source link

aipy_src/_miriad/miriad_wrap.h: improve some ergonomics for Python 3 #43

Closed pkgw closed 6 years ago

pkgw commented 6 years ago

In Python 3, the Numpy integer types such as np.int32 are no longer subclasses of the basic int type. Therefore writing out scalar integers in MIRIAD stopped working when those integers were Numpy-y. Adding PyIndex_Check enables this use case again.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.02%) to 45.791% when pulling d4d12686494db50c94084c32668785419801dd8d on pkgw:index-check into 879b7d117da20cf632733fb6fc68db7bf8e6f276 on HERA-Team:v3.