Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: P. L. Lim <2090236+pllim@users.noreply.github.com>
  • Loading branch information
rosteen and pllim authored Nov 22, 2024
1 parent f271a37 commit bafb725
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion jdaviz/core/custom_units.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

# Add spaxel to enabled units
def enable_spaxel_unit():
spaxel = spaxel = u.Unit('spaxel', represents=u.pixel, parse_strict='silent')
spaxel = u.Unit('spaxel', represents=u.pixel, parse_strict='silent')
u.add_enabled_units([spaxel])
return

Expand Down
2 changes: 0 additions & 2 deletions jdaviz/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,8 +567,6 @@ def _eqv_flux_to_sb_pixel():
equivs += [(flux_unit / u.Unit('spaxel'), flux_unit / PIX2,
lambda x: x, lambda x: x) for flux_unit in flux_units]

print(flux_units[1] / u.Unit('spaxel'))

return equivs


Expand Down

0 comments on commit bafb725

Please sign in to comment.