AstropyDumper¶
-
class
astropy.io.misc.yaml.AstropyDumper(stream, default_style=None, default_flow_style=None, canonical=None, indent=None, width=None, allow_unicode=None, line_break=None, encoding=None, explicit_start=None, explicit_end=None, version=None, tags=None)[source] [edit on github]¶ Bases:
yaml.dumper.SafeDumperCustom SafeDumper that represents 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 representer functions that are called when generating a YAML stream from an object. See the PyYaml documentation for details of the class signature.
Attributes Summary
yaml_multi_representersyaml_representersAttributes Documentation
-
yaml_multi_representers= {<class 'astropy.units.core.Unit'>: <function _unit_representer at 0x3ff8f171b38>, <class 'astropy.units.quantity.Quantity'>: <function representer at 0x3ff8f4782e8>, <class 'astropy.coordinates.angles.Angle'>: <function representer at 0x3ff8f478518>, <class 'astropy.coordinates.angles.Latitude'>: <function representer at 0x3ff8f4785f8>, <class 'astropy.coordinates.angles.Longitude'>: <function representer at 0x3ff8f4786d8>, <class 'astropy.coordinates.earth.EarthLocation'>: <function representer at 0x3ff8f4787b8>}¶
-
yaml_representers= {None: <unbound method SafeRepresenter.represent_undefined>, <class 'astropy.units.core.CompositeUnit'>: <function _unit_representer at 0x3ff8f171b38>, <class 'astropy.units.core.IrreducibleUnit'>: <function _unit_representer at 0x3ff8f171b38>, <class 'astropy.table.serialize.SerializedColumn'>: <function _serialized_column_representer at 0x3ff8e664c88>, <class 'astropy.time.core.Time'>: <function _time_representer at 0x3ff8e664d68>, <class 'astropy.time.core.TimeDelta'>: <function _timedelta_representer at 0x3ff8e664e48>, <class 'astropy.coordinates.sky_coordinate.SkyCoord'>: <function _skycoord_representer at 0x3ff8f478128>, <type 'numpy.ndarray'>: <function _ndarray_representer at 0x3ff8e664f28>, <type 'numpy.complex128'>: <function _complex_representer at 0x3ff8f478208>, <type 'numpy.complex64'>: <function _complex_representer at 0x3ff8f478208>, <type 'numpy.float128'>: <unbound method SafeRepresenter.represent_float>, <type 'numpy.float64'>: <unbound method SafeRepresenter.represent_float>, <type 'numpy.float32'>: <unbound method SafeRepresenter.represent_float>, <type 'numpy.float16'>: <unbound method SafeRepresenter.represent_float>, <type 'numpy.uint64'>: <unbound method SafeRepresenter.represent_int>, <type 'numpy.uint32'>: <unbound method SafeRepresenter.represent_int>, <type 'numpy.uint16'>: <unbound method SafeRepresenter.represent_int>, <type 'numpy.uint8'>: <unbound method SafeRepresenter.represent_int>, <type 'numpy.int64'>: <unbound method SafeRepresenter.represent_int>, <type 'numpy.int32'>: <unbound method SafeRepresenter.represent_int>, <type 'numpy.int16'>: <unbound method SafeRepresenter.represent_int>, <type 'numpy.int8'>: <unbound method SafeRepresenter.represent_int>, <type 'numpy.bool_'>: <unbound method SafeRepresenter.represent_bool>, <type 'datetime.datetime'>: <unbound method SafeRepresenter.represent_datetime>, <type 'datetime.date'>: <unbound method SafeRepresenter.represent_date>, <type 'bool'>: <unbound method SafeRepresenter.represent_bool>, <type 'complex'>: <function _complex_representer at 0x3ff8f478208>, <type 'float'>: <unbound method SafeRepresenter.represent_float>, <type 'int'>: <unbound method SafeRepresenter.represent_int>, <type 'list'>: <unbound method SafeRepresenter.represent_list>, <type 'long'>: <unbound method SafeRepresenter.represent_long>, <type 'dict'>: <unbound method SafeRepresenter.represent_dict>, <type 'NoneType'>: <unbound method SafeRepresenter.represent_none>, <type 'set'>: <unbound method SafeRepresenter.represent_set>, <type 'str'>: <unbound method SafeRepresenter.represent_str>, <type 'tuple'>: <unbound method AstropyDumper._represent_tuple>, <type 'unicode'>: <unbound method SafeRepresenter.represent_unicode>}¶
-