ApdbWithdrawDiaForcedSourceRecord¶
- class lsst.dax.apdb.ApdbWithdrawDiaForcedSourceRecord(*, diaObjectId: int, visit: int, detector: int, ra: float, dec: float, midpointMjdTai: float, update_time_ns: int, update_order: int, timeWithdrawnMjdTai: float)¶
Bases:
ApdbUpdateRecord,DiaForcedSourceIdUpdate record representing withdrawal of DIAForcedSource.
Attributes Summary
Class variable defining APDB table that this update applies to, must be defined in all concrete subclasses.
DIAForcedSource dec, in degrees.
Detector ID.
ID of parent DIAObject record.
DIAForcedSource midpointMjdTai, not required to be exact, but needs to be close to the value in database record.
DIAForcedSource ra, in degrees.
Class variable defining type of the update, must be defined in all concrete subclasses and be unique.
Visit ID.
Methods Summary
from_json(update_time_ns, update_order, json_str)from_named_tuple(named_tuple)Construct DiaForcedSourceId from a named tuple.
to_json()Attributes Documentation
- apdb_table: ClassVar[ApdbTables] = 'DiaForcedSource'¶
Class variable defining APDB table that this update applies to, must be defined in all concrete subclasses.
- dec: float¶
DIAForcedSource dec, in degrees. Not required to be exact, but needs to be close to the value in database record.
- midpointMjdTai: float¶
DIAForcedSource midpointMjdTai, not required to be exact, but needs to be close to the value in database record.
- ra: float¶
DIAForcedSource ra, in degrees. Not required to be exact, but needs to be close to the value in database record.
- update_type: ClassVar[str] = 'withdraw_diaforcedsource'¶
Class variable defining type of the update, must be defined in all concrete subclasses and be unique.
Methods Documentation
- classmethod from_json(update_time_ns: int, update_order: int, json_str: str) ApdbUpdateRecord¶
- classmethod from_named_tuple(named_tuple: Any) DiaForcedSourceId¶
Construct DiaForcedSourceId from a named tuple.
- Parameters:
- named_tuple
Named tuple which includes the same attributes as this class, e.g. a tuple returned from
pandas.DataFrame.itertuples(). Any additional attributes are ignored.
- Returns:
- object_id
DiaForcedSourceId Instance of this class.
- object_id