tconvert() not supporting leap seconds
Created by: litingxiao
It's a very small issue and I can get around it without using tconvert(). But just wanted to report the error messages that I obtained today:
File "asd_O2.py", line 148, in print 'Processing data from ' + str(tconvert(gpsstart)) + ' to ' + str(tconvert(gpsend)) File "/usr/lib/python2.7/site-packages/gwpy/time/_tconvert.py", line 88, in tconvert return from_gps(gpsordate) File "/usr/lib/python2.7/site-packages/gwpy/time/_tconvert.py", line 195, in from_gps date = Time(sec, format='gps', scale='utc').datetime File "/usr/lib64/python2.7/site-packages/astropy/time/core.py", line 1104, in getattr value = tm._shaped_like_input(tm._time.to_value(parent=tm)) File "/usr/lib64/python2.7/site-packages/astropy/time/formats.py", line 609, in to_value .format((iy, im, id, ihr, imin, isec, ifracsec))) ValueError: Time (array(2016, dtype=int32), array(12, dtype=int32), array(31, dtype=int32), array(23, dtype=int32), array(59, dtype=int32), array(60, dtype=int32), array(0, dtype=int32)) is within a leap second but datetime does not support leap seconds