CMIP-REF / cmip-ref

Rapid Evaluation Framework for CMIP simulations
Other
0 stars 0 forks source link

Mechanism for serialising metric requirements #18

Open lewisjared opened 6 days ago

lewisjared commented 6 days ago

The problem

The metric packages may not be able to be installed in the same virtual environment as the ref. We need a mechanism of creating proxy metrics/providers when we can't import the instance of the metric directly.

Perhaps we need a mechanism to serialise the provider and metric definitions. Probably YAML formatted. This could be added to a pre-commit hook to ensure that the definitions and the serialised output remain in sync.

The file would then be checked into the repo.

It should include version information about the provider

Definition of "done"

Additional context

CMEC does something similar with it's metric definitions

lewisjared commented 11 hours ago

This might be more difficult with Constraints. I don't think we can support arbitrary functions instead we must use a set of constraints provided by ref-core