Skip to content

Commit

Permalink
Bugfix for _replace_units
Browse files Browse the repository at this point in the history
  • Loading branch information
samwaseda authored Jan 4, 2025
1 parent 74b7086 commit 73a51f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pint/registry_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def _replace_units(original_units, values_by_name):
"""
q = 1
for arg_name, exponent in original_units.items():
q = q * values_by_name[arg_name] ** exponent
q = q * values_by_name[arg_name].units ** exponent

return getattr(q, "_units", UnitsContainer({}))

Expand Down

0 comments on commit 73a51f0

Please sign in to comment.