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
= {None: <unbound method SafeConstructor.construct_undefined>, '!astropy.coordinates.Angle': <function constructor at 0x7f6c6f731140>, '!astropy.coordinates.Latitude': <function constructor at 0x7f6c6f731230>, '!astropy.coordinates.Longitude': <function constructor at 0x7f6c6f731320>, '!astropy.coordinates.earth.EarthLocation': <function constructor at 0x7f6c6f731410>, '!astropy.coordinates.sky_coordinate.SkyCoord': <function _skycoord_constructor at 0x7f6c5a016c80>, '!astropy.table.SerializedColumn': <function _serialized_column_constructor at 0x7f6c5a0167d0>, '!astropy.time.Time': <function _time_constructor at 0x7f6c5a0168c0>, '!astropy.time.TimeDelta': <function _timedelta_constructor at 0x7f6c5a0169b0>, '!astropy.units.Quantity': <function constructor at 0x7f6c6f731050>, '!astropy.units.Unit': <function _unit_constructor at 0x7f6c6f6ebc08>, '!numpy.ndarray': <function _ndarray_constructor at 0x7f6c5a016aa0>, u'tag:yaml.org,2002:binary': <unbound method SafeConstructor.construct_yaml_binary>, u'tag:yaml.org,2002:bool': <unbound method SafeConstructor.construct_yaml_bool>, u'tag:yaml.org,2002:float': <unbound method SafeConstructor.construct_yaml_float>, u'tag:yaml.org,2002:int': <unbound method SafeConstructor.construct_yaml_int>, u'tag:yaml.org,2002:map': <unbound method SafeConstructor.construct_yaml_map>, u'tag:yaml.org,2002:null': <unbound method SafeConstructor.construct_yaml_null>, u'tag:yaml.org,2002:omap': <unbound method SafeConstructor.construct_yaml_omap>, u'tag:yaml.org,2002:pairs': <unbound method SafeConstructor.construct_yaml_pairs>, u'tag:yaml.org,2002:python/complex': <function _complex_constructor at 0x7f6c5a016d70>, 'tag:yaml.org,2002:python/tuple': <unbound method AstropyLoader._construct_python_tuple>, 'tag:yaml.org,2002:python/unicode': <unbound method AstropyLoader._construct_python_unicode>, u'tag:yaml.org,2002:seq': <unbound method SafeConstructor.construct_yaml_seq>, u'tag:yaml.org,2002:set': <unbound method SafeConstructor.construct_yaml_set>, u'tag:yaml.org,2002:str': <unbound method SafeConstructor.construct_yaml_str>, u'tag:yaml.org,2002:timestamp': <unbound method SafeConstructor.construct_yaml_timestamp>}¶
-