diff --git a/lcviz/utils.py b/lcviz/utils.py index 549b6b3..afdcab7 100644 --- a/lcviz/utils.py +++ b/lcviz/utils.py @@ -281,7 +281,7 @@ 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": + elif hasattr(component, 'units') and component.units not in ("None", ""): values = u.Quantity(values, component.units) if component_id.label not in names: