LIGOTimeGPSLike#
- class gwpy.time.LIGOTimeGPSLike(new: float | LIGOTimeGPS | str)[source]#
Bases:
ProtocolProtocol for types that are implementations of LIGOTimeGPS.
This is used for type hinting functions that can accept
lal.LIGOTimeGPS, orligotimegps.LIGOTimeGPS, or any other implementation of theLIGOTimeGPSstandard.This can also be used at runtime with
isinstanceto check if an object is a LIGOTimeGPS-like object, but cannot be used withissubclass.