Skip to content

Commit

Permalink
Revert "fix units with empty strings"
Browse files Browse the repository at this point in the history
This reverts commit 3d58f5f.
  • Loading branch information
kecnry committed Jun 27, 2024
1 parent 96dd39c commit 0980508
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 not in ("None", ""):
elif hasattr(component, 'units') and component.units != "None":
values = u.Quantity(values, component.units)

if component_id.label not in names:
Expand Down

0 comments on commit 0980508

Please sign in to comment.