diff --git a/CHANGES.rst b/CHANGES.rst index 48ed04c..337ea9d 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,6 +4,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)