DateTimeArrowScalar¶
- final class lsst.daf.butler.arrow_utils.DateTimeArrowScalar¶
Bases:
ExtensionScalar
An Arrow scalar type for
astropy.time.Time
, stored as TAI nanoseconds since 1970-01-01.Use the standard
as_py
method to convert to an actualastropy.time.Time
instance.Methods Summary
as_py
(self, *[, maps_as_pydicts])Return this scalar as a Python object.
Methods Documentation
- as_py(self, *, maps_as_pydicts=None)¶
Return this scalar as a Python object.
- Parameters:
- maps_as_pydictsstr, optional, default
None
Valid values are
None
, ‘lossy’, or ‘strict’. The default behavior (None
), is to convert Arrow Map arrays to Python association lists (list-of-tuples) in the same order as the Arrow Map, as in [(key1, value1), (key2, value2), …].If ‘lossy’ or ‘strict’, convert Arrow Map arrays to native Python dicts.
If ‘lossy’, whenever duplicate keys are detected, a warning will be printed. The last seen value of a duplicate key will be in the Python dictionary. If ‘strict’, this instead results in an exception being raised when detected.
- maps_as_pydictsstr, optional, default