Skip to content

Commit

Permalink
TMP: debug error
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Apr 19, 2024
1 parent 7c82d59 commit 9e9f9ef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lcviz/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@
@unit_converter('custom-lcviz')
class UnitConverter:
def equivalent_units(self, data, cid, units):
return set(list(map(str, u.Unit(units).find_equivalent_units(
include_prefix_units=True, equivalencies=u.spectral()))))
print("*** equivalent_units", cid, units, set(list(map(str, u.Unit(units).find_equivalent_units(include_prefix_units=True))))) # noqa
return set(list(map(str, u.Unit(units).find_equivalent_units(include_prefix_units=True))))

def to_unit(self, data, cid, values, original_units, target_units):
print("*** to_unit", cid, original_units, target_units)
return (values * u.Unit(original_units)).to_value(u.Unit(target_units))


Expand Down

0 comments on commit 9e9f9ef

Please sign in to comment.