From 56eae76de12a010347a54162f65a4f36920b4e89 Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Thu, 17 Oct 2024 16:35:35 -0400 Subject: [PATCH] coerce TPF cubes into /pix2 --- lcviz/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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