From 89ec18bc26a2f6ac769ed271190b8f54a8e0b409 Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Fri, 19 Apr 2024 16:16:57 -0400 Subject: [PATCH] TMP: debug error --- lcviz/helper.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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))