carpet_concentrations.input4MIPs.metadata_options
Metdata options
This module could be refactored so that it is autogenerated from some other source (or simply be an adapter to some other API) in future to remove the need for manual updates.
This might be the right source: https://github.com/PCMDI/input4MIPs-cmor-tables
ACTIVITY_ID_OPTIONS
CONVENTION_OPTIONS
DATASET_CATEGORY_OPTIONS
INCLUDES_EMAIL_REGEX
- INCLUDES_EMAIL_REGEX: Pattern[str] = re.compile('^.*?(\\S+@\\S+\\.\\S+).*$')
Regular expression that checks there is something like an email somewhere
This is very loose and just provides a basic check to really avoid obvious typos. It turns out writing a perfect regexp for email addresses is hard (see e.g. https://stackoverflow.com/questions/201323/how-can-i-validate-an-email-address-using-a-regular-expression)