Skip to content

Commit

Permalink
Remove debugging print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
rosteen committed Aug 20, 2024
1 parent 2b81e43 commit ab25778
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,17 +293,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):
Expand Down
2 changes: 0 additions & 2 deletions jdaviz/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,6 @@ def flux_conversion(values, original_units, target_units, spec=None, eqv=None, s
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 (((spec and ('_pixel_scale_factor' in spec.meta))) and
(((u.sr in orig_bases) and (u.sr not in targ_bases)) or
Expand All @@ -381,7 +380,6 @@ def flux_conversion(values, original_units, target_units, spec=None, eqv=None, s
else:
eqv_in = fac
eqv += _eqv_pixar_sr(np.array(eqv_in))
print("Found it, set equivalency")

# indirect units cannot be directly converted, and require
# additional conversions to reach the desired end unit.
Expand Down

0 comments on commit ab25778

Please sign in to comment.