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 14, 2024
1 parent 06361c9 commit 83553bf
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 @@ -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):
Expand Down
2 changes: 0 additions & 2 deletions jdaviz/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)

Expand Down

0 comments on commit 83553bf

Please sign in to comment.