We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In xclim, we explicit define the "hydro" context.
xclim
hydro = pint.Context("hydro") hydro.add_transformation( "[mass] / [length]**2", "[length]", lambda ureg, x: x / (1000 * ureg.kg / ureg.m**3), ) ... units.add_context(hydro)
and then in lower levels, we have code snippets like:
with units.context("hydro"): # perform operation
in various contexts.
I think we could support contexts explictly, maybe also define them in units, and then if users want a specific context, then can globally set:
with xsdba.units.units.context("hydro"): xsdba.DetrendedQuantileMapping(...)
For xclim/xsdba users that are used to have context="hydro" activated presently, that would be useful.
No response
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Addressing a Problem?
In
xclim
, we explicit define the "hydro" context.and then in lower levels, we have code snippets like:
in various contexts.
I think we could support contexts explictly, maybe also define them in units, and then if users want a specific context, then can globally set:
For xclim/xsdba users that are used to have context="hydro" activated presently, that would be useful.
Potential Solution
No response
Additional context
No response
Contribution
The text was updated successfully, but these errors were encountered: