From 83553bf46ad92cc9a7b100c299e76d3519b96e36 Mon Sep 17 00:00:00 2001 From: Ricky O'Steen Date: Wed, 14 Aug 2024 10:51:59 -0400 Subject: [PATCH] Remove debugging print statements --- .../configs/specviz/plugins/unit_conversion/unit_conversion.py | 3 --- jdaviz/utils.py | 2 -- 2 files changed, 5 deletions(-) diff --git a/jdaviz/configs/specviz/plugins/unit_conversion/unit_conversion.py b/jdaviz/configs/specviz/plugins/unit_conversion/unit_conversion.py index a7a6b57619..1558d65d28 100644 --- a/jdaviz/configs/specviz/plugins/unit_conversion/unit_conversion.py +++ b/jdaviz/configs/specviz/plugins/unit_conversion/unit_conversion.py @@ -290,17 +290,14 @@ def _find_and_convert_contour_units(self, yunit=None): # Can't do this before the plugin is initialized completely return - print(f"y unit is {yunit}") for name, viewer in self._app._jdaviz_helper.viewers.items(): if not isinstance(viewer._obj, BqplotImageView): continue - print(f"Checking layers in {name}") for layer in viewer._obj.state.layers: # DQ layer doesn't play nicely with this attribute if "DQ" in layer.layer.label: continue if hasattr(layer, 'attribute_display_unit'): - print(f"Found attribute_display_unit for {layer.layer.label}") layer.attribute_display_unit = yunit def _translate(self, flux_or_sb=None): diff --git a/jdaviz/utils.py b/jdaviz/utils.py index 601e72b100..a9d0d517f6 100644 --- a/jdaviz/utils.py +++ b/jdaviz/utils.py @@ -332,7 +332,6 @@ def flux_conversion(spec, values, original_units, target_units): targ_units = u.Unit(target_units) targ_bases = targ_units.bases - print("checking for pixel scale factor") # Ensure a spectrum passed through Spectral Extraction plugin if (('_pixel_scale_factor' in spec.meta) and (((u.sr in orig_bases) and (u.sr not in targ_bases)) or @@ -354,7 +353,6 @@ def flux_conversion(spec, values, original_units, target_units): eqv_in = fac eqv += _eqv_pixar_sr(np.array(eqv_in)) - print("Found it, set equivalency") return (values * orig_units).to_value(targ_units, equivalencies=eqv)