AstropyLoader¶
-
class
astropy.io.misc.yaml.
AstropyLoader
(stream)[source] [edit on github]¶ Bases:
yaml.loader.SafeLoader
Custom SafeLoader that constructs astropy core objects as well as Python tuple and unicode objects.
This class is not directly instantiated by user code, but instead is used to maintain the available constructor functions that are called when parsing a YAML stream. See the PyYaml documentation for details of the class signature.
Attributes Summary
yaml_constructors
Attributes Documentation
-
yaml_constructors
= {'!astropy.coordinates.Angle': <function _quantity_constructor.<locals>.constructor>, 'tag:yaml.org,2002:binary': <function SafeConstructor.construct_yaml_binary>, '!astropy.time.Time': <function _time_constructor>, 'tag:yaml.org,2002:float': <function SafeConstructor.construct_yaml_float>, '!astropy.coordinates.earth.EarthLocation': <function _quantity_constructor.<locals>.constructor>, '!numpy.ndarray': <function _ndarray_constructor>, '!astropy.table.SerializedColumn': <function _serialized_column_constructor>, 'tag:yaml.org,2002:python/tuple': <function AstropyLoader._construct_python_tuple>, 'tag:yaml.org,2002:int': <function SafeConstructor.construct_yaml_int>, None: <function SafeConstructor.construct_undefined>, 'tag:yaml.org,2002:timestamp': <function SafeConstructor.construct_yaml_timestamp>, 'tag:yaml.org,2002:python/complex': <function _complex_constructor>, 'tag:yaml.org,2002:null': <function SafeConstructor.construct_yaml_null>, '!astropy.units.Unit': <function _unit_constructor>, '!astropy.coordinates.Latitude': <function _quantity_constructor.<locals>.constructor>, 'tag:yaml.org,2002:python/unicode': <function AstropyLoader._construct_python_unicode>, 'tag:yaml.org,2002:bool': <function SafeConstructor.construct_yaml_bool>, '!astropy.time.TimeDelta': <function _timedelta_constructor>, 'tag:yaml.org,2002:omap': <function SafeConstructor.construct_yaml_omap>, '!astropy.coordinates.sky_coordinate.SkyCoord': <function _skycoord_constructor>, '!astropy.units.Quantity': <function _quantity_constructor.<locals>.constructor>, 'tag:yaml.org,2002:str': <function SafeConstructor.construct_yaml_str>, '!astropy.coordinates.Longitude': <function _quantity_constructor.<locals>.constructor>, 'tag:yaml.org,2002:set': <function SafeConstructor.construct_yaml_set>, 'tag:yaml.org,2002:pairs': <function SafeConstructor.construct_yaml_pairs>, 'tag:yaml.org,2002:map': <function SafeConstructor.construct_yaml_map>, 'tag:yaml.org,2002:seq': <function SafeConstructor.construct_yaml_seq>}¶
-