ApdbCloseDiaObjectValidityRecord#
- class lsst.dax.apdb.ApdbCloseDiaObjectValidityRecord(*, diaObjectId: int, ra: float, dec: float, update_time_ns: int, update_order: int, validityEndMjdTai: float, nDiaSources: int | None)#
Bases:
ApdbUpdateRecord,DiaObjectIdRecord representing closing of the validity interval of DIAObject.
Attributes Summary
Class variable defining APDB table that this update applies to, must be defined in all concrete subclasses.
DIAObject dec, in degrees.
ID of DIAObject record.
New value for nDiaSources column for updated record, or None if nDiaSources does not change.
DIAObject ra, in degrees.
Record order in the update.
Time in nanoseconds since epoch when update happened.
Class variable defining type of the update, must be defined in all concrete subclasses and be unique.
Time to set validityEnd to.
Methods Summary
Return a tuple of (field name, field value) pairs for fields that identify the record to which this update applies.
Return a tuple of (field name, field value) pairs for fields that represent updates being applied by this record.
Attributes Documentation
- apdb_table: ClassVar[ApdbTables] = 'DiaObject'#
Class variable defining APDB table that this update applies to, must be defined in all concrete subclasses.
- dec: float#
DIAObject dec, in degrees. Not required to be exact, but needs to be close to the value in database record.
- diaObjectId: int#
ID of DIAObject record.
- nDiaSources: int | None = <dataclasses._MISSING_TYPE object>#
New value for nDiaSources column for updated record, or None if nDiaSources does not change.
- ra: float#
DIAObject ra, in degrees. Not required to be exact, but needs to be close to the value in database record.
- update_order: int = <dataclasses._MISSING_TYPE object>#
Record order in the update.
- update_time_ns: int = <dataclasses._MISSING_TYPE object>#
Time in nanoseconds since epoch when update happened.
- update_type: ClassVar[str] = 'close_diaobject_validity'#
Class variable defining type of the update, must be defined in all concrete subclasses and be unique.
- validityEndMjdTai: float = <dataclasses._MISSING_TYPE object>#
Time to set validityEnd to.
Methods Documentation
- record_id() tuple[tuple[str, int], ...]#
Return a tuple of (field name, field value) pairs for fields that identify the record to which this update applies.
Returns#
- record_id_tuple
tuple[tuple[str,int], …] Tuple of (field name, field value) pairs for fields that identify the record to which this update applies.
- record_id_tuple
- record_payload() tuple[tuple[str, Any], ...]#
Return a tuple of (field name, field value) pairs for fields that represent updates being applied by this record.
Returns#
- payload_tuple
tuple[tuple[str,Any], …] Tuple of (field name, field value) pairs.
Notes#
Returned tuple contains the fields that are actually updated. Even if this class represents an update that modifies multiple fields, individual records can update a smaller set of fields.
- payload_tuple