Skip to content

Commit 0980508

Browse files
committed
Revert "fix units with empty strings"
This reverts commit 3d58f5f.
1 parent 96dd39c commit 0980508

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lcviz/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def to_object(self, data_or_subset):
281281

282282
if len(values) and isinstance(values[0], Time):
283283
values = Time(values.base)
284-
elif hasattr(component, 'units') and component.units not in ("None", ""):
284+
elif hasattr(component, 'units') and component.units != "None":
285285
values = u.Quantity(values, component.units)
286286

287287
if component_id.label not in names:

0 commit comments

Comments
 (0)