Skip to content

input4mips_validation.cvs.author#

input4mips_validation.cvs.author #

Definition of an author of a dataset.

Author #

Author of a dataset

Source code in src/input4mips_validation/cvs/author.py
@frozen
class Author:
    """Author of a dataset"""

    name: str
    """Name of the author"""

    email: str = field(
        validator=[make_attrs_validator_compatible_single_input(validate_email)]
    )
    """
    Contact email for the author

    Needed in case of clarifications related to the dataset
    """

    affiliations: tuple[str, ...] = field(validator=[validators.instance_of(tuple)])
    """
    Affiliation(s) of the author

    There is no validation done on these strings, they are deliberately free-form
    to allow authors to write their affiliations as they wish.
    """

    orcid: str = field(
        validator=[make_attrs_validator_compatible_single_input(validate_orcid)]
    )
    """
    ORCID of the author
    """

affiliations: tuple[str, ...] = field(validator=[validators.instance_of(tuple)]) class-attribute instance-attribute #

Affiliation(s) of the author

There is no validation done on these strings, they are deliberately free-form to allow authors to write their affiliations as they wish.

email: str = field(validator=[make_attrs_validator_compatible_single_input(validate_email)]) class-attribute instance-attribute #

Contact email for the author

Needed in case of clarifications related to the dataset

name: str instance-attribute #

Name of the author

orcid: str = field(validator=[make_attrs_validator_compatible_single_input(validate_orcid)]) class-attribute instance-attribute #

ORCID of the author