Closed RondeauG closed 2 years ago
Do you think that there's an issue with relative_humidity
and relative_humidity_from_dewpoint
having the same variable name? I don't really have the data to test it out...
I don't believe so, but I can test it.
Woups yes it does, the registry is a dictionary where keys are the variable names. So only one of the hurs
function gets registered, the last one in the yaml.
Donc, dans variable_and_freqs
, on veut que les utilisateurs mettent ce qui est dans [cf_attrs][var_name], right?
Si une personne demande hurs
, lequel va être utilisé ? Il me semble que ça apporte de la confusion.
EDIT: oups j'avais pas vu ton commentaire Pascal.
Woups yes it does, the registry is a dictionary where keys are the variable names. So only one of the
hurs
function gets registered, the last one in the yaml.
Welp. In that case, I suggest keeping only one (relative_humidity_from_dewpoint
?) and exposing conversions.yml
as an argument, so that people can provide their own version as needed. I think it's a decent compromise?
Edit: It would aslo solve the issue where if someone wants another method than Tetens30, this is currently not possible.
Pull Request Checklist:
pre-commit
hooks are installed/active in my local clone ($ pre-commit install
)number
) and pull request (:pull:number
) has been addedWhat kind of change does this PR introduce?
search_data_catalogs
to force a more conscious choice when data is transformed.Does this PR introduce a breaking change?
No.
Other information: