Skip to content

Commit

Permalink
remove unnecessary parts of github commit
Browse files Browse the repository at this point in the history
  • Loading branch information
eteq committed Jul 16, 2020
1 parent 5999321 commit 3918843
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions jdaviz/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,11 +562,6 @@ def _set_plot_axes_labels(self, data, viewer_id):
spectral_axis_unit_type = data.spectral_axis.unit.physical_type.title()
flux_unit_type = data.flux.unit.physical_type.title()

from astropy import units as u
if data.spectral_axis.unit.is_equivalent(u.m):
spectral_axis_unit_type = "Wavelength"
if data.spectral_axis.unit.is_equivalent(u.pixel):
spectral_axis_unit_type = "pixel"
if data.spectral_axis.unit.is_equivalent(u.m):
spectral_axis_unit_type = "Wavelength"
elif data.spectral_axis.unit.is_equivalent(u.pixel):
Expand Down

0 comments on commit 3918843

Please sign in to comment.