libera_utils.packet_configs.TimeFieldMapping#
- class libera_utils.packet_configs.TimeFieldMapping(day_field: str | None = None, s_field: str | None = None, ms_field: str | None = None, us_field: str | None = None)#
Bases:
objectMapping of time field names to their roles in multipart timestamp conversion.
This class defines which packet fields correspond to different time units (days, seconds, milliseconds, microseconds) and provides a property to generate the appropriate kwargs for the multipart_to_dt64 function.
- Attributes:
- day_field
- ms_field
multipart_kwargsReturn kwargs dict for multipart_to_dt64 function.
- s_field
- us_field
- __init__(day_field: str | None = None, s_field: str | None = None, ms_field: str | None = None, us_field: str | None = None) None#
Attributes
day_fieldms_fieldReturn kwargs dict for multipart_to_dt64 function.
s_fieldus_field