Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
cshanahan1 committed Sep 20, 2024
2 parents 59ed5a8 + 91c6ff3 commit 7d5896c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ New Features

- Added flux/surface brightness translation and surface brightness
unit conversion in Cubeviz and Specviz. [#2781, #2940, #3088, #3111, #3113, #3129,
#3139, #3149, #3155, #3178, #3185, #3187, #3156]
#3139, #3149, #3155, #3178, #3185, #3187, #3190, #3156]

- Plugin tray is now open by default. [#2892]

Expand Down
2 changes: 2 additions & 0 deletions jdaviz/configs/default/plugins/model_fitting/model_fitting.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,8 @@ def _initialize_model_component(self, model_comp, comp_label, poly_order=None):
init_x = masked_spectrum.spectral_axis
init_y = masked_spectrum.flux

# equivs for spectral density and flux<>flux/pix2. revisit
# when generalizing plugin UC equivs.
equivs = _eqv_flux_to_sb_pixel() + [u.spectral_density(init_x)]
init_y = init_y.to(self._units['y'], equivs)

Expand Down

0 comments on commit 7d5896c

Please sign in to comment.