Closed keewis closed 5 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
a9cebee
) 85.78% compared to head (3ee6b89
) 85.79%.:exclamation: Current head 3ee6b89 differs from pull request most recent head 997ea4b. Consider uploading reports for the commit 997ea4b to get more accurate results
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
The idea is to accept integer units of
1
for dimensionless, which is explicitly allowed by the CF conventions (we could, however, pass through objects that are not integers unmodified).Note that
pint
itself doesn't really like the idea of integer units, so this will only work withureg.parse_units(1)
:ureg.Quantity(1, 1)
will raise before any preprocessor is called.