Skip to content

Commit 690b636

Browse files
committed
precision on quantity
1 parent f89252b commit 690b636

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gsw_xarray/_core.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ def quantify(rv, attrs):
2929
rv = rv.pint.quantify()
3030
else:
3131
if attrs is not None:
32+
# Necessary to use the Q_ and not simply multiplication with ureg unit because of temperature
33+
# see https://pint.readthedocs.io/en/latest/nonmult.html
3234
rv = Q_(rv, attrs["units"])
3335
return rv
3436

0 commit comments

Comments
 (0)