-
Notifications
You must be signed in to change notification settings - Fork 0
Description
One of the proposed uses of the variable registry is to use it as a look up table. For example, given a branded variable name, I would like to look up the cell methods and dimensions.
At first this seems innocuous. In practice, it introduces a uniqueness constraint (I think): for a given branded variable name, there must be only one valid value of cell methods and dimensions (i.e. the combination of branded variable name, cell methods and dimensions must be unique). With the current branding algorithm, this is not necessarily true because cell methods can have stuff in brackets which the algorithm doesn't look at, so we may run into issues if we don't do a bit more thinking about this (fortunately, with the current data request, this uniqueness is there by coincidence, as confirmed here znicholls/CMIP-branded-variable-mapper#34 (comment)).
So, if we do want to support such look up table use, then we need:
- identify the look ups which should be unique i.e. provide unambiguous answers
- add tests to ensure that this uniqueness constraint is respected as we add new information to the registry