Skip to main content
`Ctrl`+`K`

# AstropyLoader

class astropy.io.misc.yaml.AstropyLoader(stream)

  Bases: `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.

  Initialize the scanner.

  Attributes Summary

  `yaml_constructors` |

  Attributes Documentation

  yaml_constructors = {'!astropy.coordinates.AltAz': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.Angle': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.BarycentricMeanEcliptic': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.BarycentricTrueEcliptic': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.CIRS': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.CartesianDifferential': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.CartesianRepresentation': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.CustomBarycentricEcliptic': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.CylindricalDifferential': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.CylindricalRepresentation': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.FK4': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.FK4NoETerms': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.FK5': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.GCRS': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.GRS80GeodeticRepresentation': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.Galactic': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.GalacticLSR': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.Galactocentric': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.GeocentricMeanEcliptic': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.GeocentricTrueEcliptic': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.HADec': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.HCRS': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.HeliocentricEclipticIAU76': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.HeliocentricMeanEcliptic': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.HeliocentricTrueEcliptic': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.ICRS': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.ITRS': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.LSR': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.LSRD': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.LSRK': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.Latitude': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.Longitude': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.PhysicsSphericalDifferential': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.PhysicsSphericalRepresentation': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.PrecessedGeocentric': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.RadialDifferential': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.RadialRepresentation': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.SphericalCosLatDifferential': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.SphericalDifferential': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.SphericalRepresentation': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.Supergalactic': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.TEME': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.TETE': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.UnitSphericalCosLatDifferential': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.UnitSphericalDifferential': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.UnitSphericalRepresentation': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.WGS72GeodeticRepresentation': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.WGS84GeodeticRepresentation': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.earth.EarthLocation': <function _quantity_constructor.<locals>.constructor>, '!astropy.coordinates.sky_coordinate.SkyCoord': <function _skycoord_constructor>, '!astropy.cosmology.FLRW': <function yaml_constructor.<locals>.constructor>, '!astropy.cosmology.FlatLambdaCDM': <function yaml_constructor.<locals>.constructor>, '!astropy.cosmology.Flatw0waCDM': <function yaml_constructor.<locals>.constructor>, '!astropy.cosmology.FlatwCDM': <function yaml_constructor.<locals>.constructor>, '!astropy.cosmology.LambdaCDM': <function yaml_constructor.<locals>.constructor>, '!astropy.cosmology._src.flrw.w0wzcdm.Flatw0wzCDM': <function yaml_constructor.<locals>.constructor>, '!astropy.cosmology._src.flrw.wpwazpcdm.FlatwpwaCDM': <function yaml_constructor.<locals>.constructor>, '!astropy.cosmology.w0waCDM': <function yaml_constructor.<locals>.constructor>, '!astropy.cosmology.w0wzCDM': <function yaml_constructor.<locals>.constructor>, '!astropy.cosmology.wCDM': <function yaml_constructor.<locals>.constructor>, '!astropy.cosmology.wpwaCDM': <function yaml_constructor.<locals>.constructor>, '!astropy.table.SerializedColumn': <function _serialized_column_constructor>, '!astropy.time.Time': <function _time_constructor>, '!astropy.time.TimeDelta': <function _timedelta_constructor>, '!astropy.units.Decibel': <function _quantity_constructor.<locals>.constructor>, '!astropy.units.Dex': <function _quantity_constructor.<locals>.constructor>, '!astropy.units.Magnitude': <function _quantity_constructor.<locals>.constructor>, '!astropy.units.Quantity': <function _quantity_constructor.<locals>.constructor>, '!astropy.units.Unit': <function _unit_constructor>, '!numpy.ndarray': <function _ndarray_constructor>, '!numpy.void': <function _void_constructor>, 'tag:yaml.org,2002:binary': <function SafeConstructor.construct_yaml_binary>, 'tag:yaml.org,2002:bool': <function SafeConstructor.construct_yaml_bool>, 'tag:yaml.org,2002:float': <function SafeConstructor.construct_yaml_float>, 'tag:yaml.org,2002:int': <function SafeConstructor.construct_yaml_int>, 'tag:yaml.org,2002:map': <function SafeConstructor.construct_yaml_map>, 'tag:yaml.org,2002:null': <function SafeConstructor.construct_yaml_null>, 'tag:yaml.org,2002:omap': <function SafeConstructor.construct_yaml_omap>, 'tag:yaml.org,2002:pairs': <function SafeConstructor.construct_yaml_pairs>, 'tag:yaml.org,2002:python/complex': <function _complex_constructor>, 'tag:yaml.org,2002:python/tuple': <function AstropyLoader._construct_python_tuple>, 'tag:yaml.org,2002:python/unicode': <function AstropyLoader._construct_python_unicode>, 'tag:yaml.org,2002:seq': <function SafeConstructor.construct_yaml_seq>, 'tag:yaml.org,2002:set': <function SafeConstructor.construct_yaml_set>, 'tag:yaml.org,2002:str': <function SafeConstructor.construct_yaml_str>, 'tag:yaml.org,2002:timestamp': <function SafeConstructor.construct_yaml_timestamp>, None: <function SafeConstructor.construct_undefined>}