Skip to content

Commit

Permalink
remove var def to avoid line overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cshanahan1 committed Sep 18, 2024
1 parent aa0d384 commit 7cad3f2
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -614,9 +614,8 @@ def calculate_photometry(self, dataset=None, aperture=None, background=None,
background_value = (background_value * display_unit).to_value(
img_unit, u.spectral_density(self._cube_wave))
else:
sub = background if background is not None else self.background.selected
dat = dataset if dataset is not None else self.dataset.selected
bg_reg = self.aperture._get_spatial_region(subset=sub, dataset=dat)
bg_reg = self.aperture._get_spatial_region(subset=background if background is not None else self.background.selected, #noqa
dataset=dataset if dataset is not None else self.dataset.selected) #noqa
background_value = self._calc_background_median(bg_reg, data=data)

# cubeviz: computed background median will be in display units,
Expand Down

0 comments on commit 7cad3f2

Please sign in to comment.