mt_metadata.transfer_functions.io.emtfxml.metadata.emtf

Classes

EMTF

Base class for all metadata objects with Pydantic validation.

Module Contents

class mt_metadata.transfer_functions.io.emtfxml.metadata.emtf.EMTF(**data)

Bases: mt_metadata.base.MetadataBase

Base 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

description: Annotated[str | None, Field(default='', description='description of what is in the file; default is magnetotelluric transfer functions', alias=None, json_schema_extra={'units': None, 'required': True, 'examples': ['Magnetotelluric Transfer Functions']})]
product_id: Annotated[str | None, Field(default='', description='ID given as the archive ID of the station', alias=None, pattern='^[a-zA-Z0-9._-]*$', json_schema_extra={'units': None, 'required': True, 'examples': ['USMTArray.NVS11.2020']})]
tags: Annotated[str | None, Field(default='', description='tags that help describe the data', alias=None, json_schema_extra={'units': None, 'required': True, 'examples': ['impedance, induction vectors']})]
sub_type: Annotated[mt_metadata.common.enumerations.DataTypeEnum, Field(default=DataTypeEnum.MT_TF, description='subject data type', alias=None, json_schema_extra={'units': None, 'required': True, 'examples': ['MT_TF']})]
notes: Annotated[str | None, Field(default=None, description='any notes applicable to the user on data present in the file', alias=None, json_schema_extra={'units': None, 'required': False, 'examples': ['these are notes']})]