Skip to content

Commit

Permalink
typos and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
cshanahan1 committed Nov 22, 2024
1 parent c338e55 commit c7d2c2b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions jdaviz/configs/cubeviz/plugins/moment_maps/moment_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,15 +326,15 @@ def calculate_moment(self, add_data=True):
# moment for using converted units.
if n_moment == 0:
x_unit = u.Unit(self.spectrum_viewer.state.x_display_unit)
# only flux<> flux conversions will occur, so we only
# only flux <> flux conversions will occur, so we only
# need the spectral_density equivalency.

# if u.spectral_density equivalency is required to convert to
# the display unit, warn user that an assumption was made for
# an effective wavelenght. this handling should be improved
# an effective wavelength. this handling should be improved
# in JDAT 4963.

# if the unit conversion is sucessful with u.spectral_density
# if the unit conversion is successful with u.spectral_density
# and not sucessful without it, then we know it is required
# and to alert the user of the assumption made.
try:
Expand All @@ -354,10 +354,10 @@ def calculate_moment(self, add_data=True):
unit_warning = True

if unit_warning:
msg = 'A spectral density equivalency is required to convert ' +\
f'moment map (unit={self.moment.unit}) to display unit ' +\
f'({self.moment_zero_unit}). Using the mean of the ' +\
f'spectral axis ({wav_eff}).'
msg = ('A spectral density equivalency is required to convert '
f'moment map (unit={self.moment.unit}) to display unit '
f'({self.moment_zero_unit}). Using the mean of the '
f'spectral axis ({wav_eff}).')
self.hub.broadcast(SnackbarMessage(msg, sender=self, color='warning'))

self.moment = moment
Expand Down

0 comments on commit c7d2c2b

Please sign in to comment.