Skip to content

Commit

Permalink
dimensionless
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewgsavage committed Jun 11, 2024
1 parent 8d0439a commit 6a1938e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pint/delegates/formatter/_compound_unit_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,7 @@ def prepare_compount_unit(
out = unit._units.items()
else:
out = unit
print(out)
if len(out) == 0 and not "~" in spec:
out = {"dimensionless": 1}.items()

# out: unit_name, unit_exponent

if "~" in spec:
Expand Down

0 comments on commit 6a1938e

Please sign in to comment.