Skip to content
This repository has been archived by the owner on Jul 22, 2021. It is now read-only.

Commit

Permalink
Merge pull request #589 from nmearl/fix-inclusion-regions
Browse files Browse the repository at this point in the history
Use inclusions regions in continuum generator
  • Loading branch information
nmearl committed Nov 28, 2018
2 parents 74bd7b4 + 1678173 commit f77c634
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion specviz/plugins/model_editor/continuum_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ def on_action_triggered(self):
# Retreive any rois to be used for exclusion in the continuum fit.
# TODO: need an easy way to invert this to satisfy the formalism of
# specutils where *excluded* regions are passed in.
exc_regs = self.hub.spectral_regions
inc_regs = self.hub.spectral_regions
exc_regs = inc_regs.invert_from_spectrum(spec)

# Perform the continuum fitting, storing both model and array output

cont_mod = fit_generic_continuum(spec, exclude_regions=exc_regs)
y_cont = cont_mod(spec.spectral_axis)

Expand Down

0 comments on commit f77c634

Please sign in to comment.