Skip to content

Commit

Permalink
fix units with empty strings
Browse files Browse the repository at this point in the history
affects CDIPS HLSP light curves
  • Loading branch information
kecnry committed Jun 26, 2024
1 parent 2236ade commit 3d58f5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lcviz/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3d58f5f

Please sign in to comment.