AstropyDumper¶
- class astropy.io.misc.yaml.AstropyDumper(stream, default_style=None, default_flow_style=False, canonical=None, indent=None, width=None, allow_unicode=None, line_break=None, encoding=None, explicit_start=None, explicit_end=None, version=None, tags=None, sort_keys=True)[ソース]¶
ベースクラス:
yaml.dumper.SafeDumper
Safe Dumperをカスタマイズし、AsteryコアオブジェクトおよびPythonタプルおよびUnicodeオブジェクトを表します。
このようなユーザコードは直接インスタンス化されているのではなく,オブジェクトからYAMLストリームを生成する際に呼び出される利用可能な表示器関数を維持するためのものである.ご参照ください PyYaml documentation クラス署名の詳細については、参照されたい。
属性要約
属性文書
- yaml_multi_representers = {<class 'astropy.units.core.UnitBase'>: <function _unit_representer>, <class 'astropy.units.function.core.FunctionUnitBase'>: <function _unit_representer>, <class 'astropy.units.quantity.Quantity'>: <function _quantity_representer.<locals>.representer>, <class 'astropy.units.function.logarithmic.Magnitude'>: <function _quantity_representer.<locals>.representer>, <class 'astropy.units.function.logarithmic.Dex'>: <function _quantity_representer.<locals>.representer>, <class 'astropy.units.function.logarithmic.Decibel'>: <function _quantity_representer.<locals>.representer>, <class 'astropy.coordinates.angles.Angle'>: <function _quantity_representer.<locals>.representer>, <class 'astropy.coordinates.angles.Latitude'>: <function _quantity_representer.<locals>.representer>, <class 'astropy.coordinates.angles.Longitude'>: <function _quantity_representer.<locals>.representer>, <class 'astropy.coordinates.earth.EarthLocation'>: <function _quantity_representer.<locals>.representer>, <class 'astropy.coordinates.representation.CartesianRepresentation'>: <function _quantity_representer.<locals>.representer>, <class 'astropy.coordinates.representation.UnitSphericalRepresentation'>: <function _quantity_representer.<locals>.representer>, <class 'astropy.coordinates.representation.RadialRepresentation'>: <function _quantity_representer.<locals>.representer>, <class 'astropy.coordinates.representation.SphericalRepresentation'>: <function _quantity_representer.<locals>.representer>, <class 'astropy.coordinates.representation.PhysicsSphericalRepresentation'>: <function _quantity_representer.<locals>.representer>, <class 'astropy.coordinates.representation.CylindricalRepresentation'>: <function _quantity_representer.<locals>.representer>, <class 'astropy.coordinates.representation.CartesianDifferential'>: <function _quantity_representer.<locals>.representer>, <class 'astropy.coordinates.representation.UnitSphericalDifferential'>: <function _quantity_representer.<locals>.representer>, <class 'astropy.coordinates.representation.SphericalDifferential'>: <function _quantity_representer.<locals>.representer>, <class 'astropy.coordinates.representation.UnitSphericalCosLatDifferential'>: <function _quantity_representer.<locals>.representer>, <class 'astropy.coordinates.representation.SphericalCosLatDifferential'>: <function _quantity_representer.<locals>.representer>, <class 'astropy.coordinates.representation.RadialDifferential'>: <function _quantity_representer.<locals>.representer>, <class 'astropy.coordinates.representation.PhysicsSphericalDifferential'>: <function _quantity_representer.<locals>.representer>, <class 'astropy.coordinates.representation.CylindricalDifferential'>: <function _quantity_representer.<locals>.representer>}¶
- yaml_representers = {<class 'NoneType'>: <function SafeRepresenter.represent_none>, <class 'str'>: <function SafeRepresenter.represent_str>, <class 'bytes'>: <function SafeRepresenter.represent_binary>, <class 'bool'>: <function SafeRepresenter.represent_bool>, <class 'int'>: <function SafeRepresenter.represent_int>, <class 'float'>: <function SafeRepresenter.represent_float>, <class 'list'>: <function SafeRepresenter.represent_list>, <class 'tuple'>: <function AstropyDumper._represent_tuple>, <class 'dict'>: <function SafeRepresenter.represent_dict>, <class 'set'>: <function SafeRepresenter.represent_set>, <class 'datetime.date'>: <function SafeRepresenter.represent_date>, <class 'datetime.datetime'>: <function SafeRepresenter.represent_datetime>, None: <function SafeRepresenter.represent_undefined>, <class 'numpy.ndarray'>: <function _ndarray_representer>, <class 'astropy.time.core.Time'>: <function _time_representer>, <class 'astropy.time.core.TimeDelta'>: <function _timedelta_representer>, <class 'astropy.coordinates.sky_coordinate.SkyCoord'>: <function _skycoord_representer>, <class 'astropy.table.serialize.SerializedColumn'>: <function _serialized_column_representer>, <class 'numpy.bool_'>: <function SafeRepresenter.represent_bool>, <class 'numpy.int64'>: <function SafeRepresenter.represent_int>, <class 'numpy.int32'>: <function SafeRepresenter.represent_int>, <class 'numpy.int8'>: <function SafeRepresenter.represent_int>, <class 'numpy.int16'>: <function SafeRepresenter.represent_int>, <class 'numpy.uint8'>: <function SafeRepresenter.represent_int>, <class 'numpy.uint16'>: <function SafeRepresenter.represent_int>, <class 'numpy.uint32'>: <function SafeRepresenter.represent_int>, <class 'numpy.uint64'>: <function SafeRepresenter.represent_int>, <class 'numpy.float64'>: <function SafeRepresenter.represent_float>, <class 'numpy.float16'>: <function SafeRepresenter.represent_float>, <class 'numpy.float32'>: <function SafeRepresenter.represent_float>, <class 'numpy.float128'>: <function SafeRepresenter.represent_float>, <class 'numpy.complex128'>: <function _complex_representer>, <class 'complex'>: <function _complex_representer>, <class 'numpy.complex64'>: <function _complex_representer>}¶