mt_metadata.common.funding_source ================================= .. py:module:: mt_metadata.common.funding_source Classes ------- .. autoapisummary:: mt_metadata.common.funding_source.FundingSource Module Contents --------------- .. py:class:: FundingSource(**data) Bases: :py:obj:`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. .. attribute:: _skip_equals Private attribute listing fields to skip in equality comparisons :type: list[str] .. attribute:: _fields Private attribute caching field information :type: dict[str, Any] .. rubric:: 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 .. py:attribute:: name :type: Annotated[list[str] | str | None, Field(default=None, description='Persons name, should be full first and last name.', alias=None, json_schema_extra={'units': None, 'required': False, 'examples': 'person name', 'items': {'type': 'string'}})] .. py:attribute:: organization :type: Annotated[list[str] | str | None, Field(default=None, description='Organization full name', alias=None, json_schema_extra={'units': None, 'required': False, 'examples': 'mt gurus', 'items': {'type': 'string'}})] .. py:attribute:: email :type: Annotated[list[pydantic.EmailStr] | pydantic.EmailStr | None, Field(default=None, description='Email of the contact person', alias=None, json_schema_extra={'units': None, 'required': False, 'examples': 'mt.guru@em.org', 'items': {'type': 'string'}})] .. py:attribute:: url :type: Annotated[list[pydantic.AnyHttpUrl] | pydantic.AnyHttpUrl | None, Field(default=None, description='URL of the contact person', alias=None, json_schema_extra={'units': None, 'required': False, 'examples': 'em.org', 'items': {'type': 'string'}})] .. py:attribute:: comments :type: Annotated[mt_metadata.common.Comment, Field(default_factory=lambda: Comment(), description='Any comments about the person', alias=None, json_schema_extra={'units': None, 'required': False, 'examples': 'expert digger'})] .. py:attribute:: grant_id :type: Annotated[list[str] | str | None, Field(default=None, description='Grant ID number or name', alias=None, json_schema_extra={'units': None, 'required': False, 'examples': 'MT-01-2020', 'items': {'type': 'string'}})] .. py:method:: validate_comments(value, info) :classmethod: .. py:method:: validate_input(value) :classmethod: make sure the inputs are lists :param value: _description_ :type value: _type_ :returns: _description_ :rtype: list