mt_metadata.transfer_functions.io.emtfxml.metadata.orientation
Classes
Base class for all metadata objects with Pydantic validation. |
Module Contents
- class mt_metadata.transfer_functions.io.emtfxml.metadata.orientation.Orientation(**data)
Bases:
mt_metadata.base.MetadataBaseBase class for all metadata objects with Pydantic validation.
MetadataBase extends DotNotationBaseModel (which inherits from Pydantic’s BaseModel) to provide automatic validation according to metadata standards. It adds functionality beyond dictionaries, supporting JSON, XML, pandas Series, and other formats for metadata interchange.
- _skip_equals
Private attribute listing fields to skip in equality comparisons
- Type:
list[str]
- _fields
Private attribute caching field information
- Type:
dict[str, Any]
Notes
All field assignments are validated automatically via Pydantic
None values are converted to appropriate defaults (empty string or 0.0)
Supports nested attribute access via dot notation
Thread-safe for read operations after initialization
- angle_to_geographic_north: Annotated[float, Field(default=0.0, description='Angle to geographic north of the station orientation', alias=None, json_schema_extra={'units': 'degrees', 'required': True, 'examples': [0]})]
- layout: Annotated[mt_metadata.common.enumerations.ChannelOrientationEnum, Field(default=ChannelOrientationEnum.orthogonal, description='Orientation of channels relative to each other', alias=None, json_schema_extra={'units': None, 'required': True, 'examples': ['orthogonal']})]
- read_dict(input_dict)
- Parameters:
input_dict (TYPE) – DESCRIPTION
- Returns:
DESCRIPTION
- Return type:
TYPE
- to_xml(string=False, required=True)
Overwrite to XML to follow EMTF XML format
- Parameters:
string (TYPE, optional) – DESCRIPTION, defaults to False
required (TYPE, optional) – DESCRIPTION, defaults to True
- Returns:
DESCRIPTION
- Return type:
TYPE