summaryrefslogtreecommitdiff
path: root/docs/nonmult.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/nonmult.rst')
-rw-r--r--docs/nonmult.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/nonmult.rst b/docs/nonmult.rst
index 6d83da9..4d792c1 100644
--- a/docs/nonmult.rst
+++ b/docs/nonmult.rst
@@ -79,7 +79,7 @@ If you want to add a quantity with absolute unit to one with offset unit, like h
>>> Q_(10., ureg.degC) + heating_rate * Q_(30, ureg.min)
Traceback (most recent call last):
...
- pint.errors.OffsetUnitCalculusError: Ambiguous operation with offset unit (degC, kelvin).
+ OffsetUnitCalculusError: Ambiguous operation with offset unit (degC, kelvin).
you have to avoid the ambiguity by either converting the offset unit to the
absolute unit before addition
@@ -123,7 +123,7 @@ to be explicitly created:
>>> home = 25.4 * ureg.degC
Traceback (most recent call last):
...
- pint.errors.OffsetUnitCalculusError: Ambiguous operation with offset unit (degC).
+ OffsetUnitCalculusError: Ambiguous operation with offset unit (degC).
>>> Q_(25.4, ureg.degC)
<Quantity(25.4, 'degC')>
@@ -157,7 +157,7 @@ You can change the behaviour at any time:
>>> 1/T
Traceback (most recent call last):
...
- pint.errors.OffsetUnitCalculusError: Ambiguous operation with offset unit (degC).
+ OffsetUnitCalculusError: Ambiguous operation with offset unit (degC).
The parser knows about *delta* units and uses them when a temperature unit
is found in a multiplicative context. For example, here: