Skip to content

Commit

Permalink
fix: to_string
Browse files Browse the repository at this point in the history
Signed-off-by: nstarman <nstarman@users.noreply.github.com>
  • Loading branch information
nstarman committed Jul 14, 2024
1 parent fc2f186 commit a406c72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion astropy/units/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,7 @@ def convert(v):
pass

def get_err_str(unit):
unit_str = unit.to_string("unscaled")
unit_str = unit.to_string("generic")
physical_type = unit.physical_type
if physical_type != "unknown":
unit_str = f"'{unit_str}' ({physical_type})"
Expand Down

0 comments on commit a406c72

Please sign in to comment.