diff --git a/CHANGES.rst b/CHANGES.rst index db14cb2..546fd83 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -6,6 +6,8 @@ 0.4.1 (unreleased) ------------------ +* Fixes CDIPS support by handling columns filled with strings with empty units. [#122] + 0.4.0 (06-11-2024) ------------------ diff --git a/lcviz/utils.py b/lcviz/utils.py index 549b6b3..27245da 100644 --- a/lcviz/utils.py +++ b/lcviz/utils.py @@ -282,7 +282,13 @@ def to_object(self, data_or_subset): if len(values) and isinstance(values[0], Time): values = Time(values.base) elif hasattr(component, 'units') and component.units != "None": - values = u.Quantity(values, component.units) + try: + values = u.Quantity(values, component.units) + except TypeError: + if component.units != "": + raise + # values could have been an array of strings with units "" + values = values if component_id.label not in names: columns.append(values)