Can't create lal.LIGOTimeGPS with numpy.int32
I'm seeing the following error when trying to build a LIGOTimeGPS
using numpy.int32
, actually anything except numpy.int64
(python2.7
):
>>> import lal
>>> import numpy
>>> lal.LIGOTimeGPS(numpy.int64(100))
LIGOTimeGPS(100, 0)
>>> lal.LIGOTimeGPS(numpy.int32(100))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: in method 'new_LIGOTimeGPS', argument 1 of type 'struct tagLIGOTimeGPS const *'
Having the ability to create LIGOTimeGPS
from all numpy
integer types would be helpful, in general.
[Migrated from email]