From 3d58f5fba20519bfe7aeccd765caf0b166f63aab Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Wed, 26 Jun 2024 14:04:55 -0400 Subject: [PATCH] fix units with empty strings affects CDIPS HLSP light curves --- lcviz/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: