diff --git a/lcviz/helper.py b/lcviz/helper.py index 143d076..51d76fe 100644 --- a/lcviz/helper.py +++ b/lcviz/helper.py @@ -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))))) + 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))