Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to implement "one-of" and "one-or-more-of" #3

Open
agstephens opened this issue Mar 31, 2022 · 1 comment
Open

How to implement "one-of" and "one-or-more-of" #3

agstephens opened this issue Mar 31, 2022 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@agstephens
Copy link
Member

@rule:one-of: vocabs:ukcp18:variables

@rule:one-or-more: vocabs:ukcp18:variables

@agstephens agstephens self-assigned this Mar 31, 2022
@agstephens
Copy link
Member Author

Implemented, by example:

etc/checksit.ini:

[settings]
rule_splitters = |

--

$ checksit check 
  -r global_attributes:project=rule-func:match-one-of:"ukcp18|ukcp09",\ 
      global_attributes:contact=rule-func:match-one-or-more-of:"[email protected]|UKCP Team|MOHC"  \
/gws/nopw/j04/cmip6_prep_vol1/ukcp18/data/land-prob/v20211110/uk/25km/rcp85/sample/b8110/30y/cltAnom/mon/v20211110/cltAnom_rcp85_land-prob_uk_25km_sample_b8110_30y_mon_20091201-20991130.nc

NOTE: There is a need to not use commas, because the rules are split on commas.
NOTE: There is a need to use speech marks if spaces exist.

@agstephens agstephens added the documentation Improvements or additions to documentation label Apr 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant