Fixed dtype casting in StateTimeSeries.to_dqflag
This PR fixes the use of the dtype
keyword in StateTimeSeries.to_dqflag
. The new default is the dtype
of the time index of the input series, but allows casting up-front to other types, e.g. LIGOTimeGPS
, rather than after-the-fact, which caused precision issues.