TimeAttribute#
- class astropy.coordinates.TimeAttribute(default=None, secondary_attribute='')[source]#
Bases:
Attribute
Frame attribute descriptor for quantities that are Time objects. See the
Attribute
API doc for further information.- Parameters:
Methods Summary
convert_input
(value)Convert input value to a Time object and validate by running through the Time constructor.
Methods Documentation
- convert_input(value)[source]#
Convert input value to a Time object and validate by running through the Time constructor. Also check that the input was a scalar.
- Parameters:
- value
object
Input value to be converted.
- value
- Returns:
- Raises:
ValueError
If the input is not valid for this attribute.