Skip to content

Commit

Permalink
Update cf_xarray/units.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian authored Jan 31, 2024
1 parent 3ee6b89 commit 997ea4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cf_xarray/units.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def repl(m):
# ----- end block copied from metpy

# need to insert to make sure this is the first preprocessor
# This ensures we convert integer `1` to string `"1"`, as needed by pint.
units.preprocessors.insert(0, str)

# -----
Expand Down

0 comments on commit 997ea4b

Please sign in to comment.