diff --git a/lcviz/utils.py b/lcviz/utils.py index 27245da..33df223 100644 --- a/lcviz/utils.py +++ b/lcviz/utils.py @@ -357,7 +357,7 @@ def to_data(self, obj, reference_time=None, unit=u.d): data[cid] = component_data if hasattr(component_data, 'unit'): try: - data.get_component(cid).units = str(component_data.unit) + data.get_component(cid).units = str(component_data.unit/u.pix**2) except KeyError: # pragma: no cover continue