Skip to content

Commit

Permalink
* fix missing assignment to contmodel for certain spectra in continuu…
Browse files Browse the repository at this point in the history
…m fitting

* return MAX_PRE_VDISP to 500
  • Loading branch information
Jeremy Buhler committed Nov 7, 2024
1 parent 44ff6f9 commit 699c9dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions py/fastspecfit/continuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -1304,6 +1304,7 @@ def continuum_fastspec(redshift, objflam, objflamivar, CTools,
vdisp = templates.vdisp_nominal
input_templateflux = templates.flux_nomvdisp[:, agekeep]
input_templateflux_nolines = templates.flux_nolines_nomvdisp[:, agekeep]
contmodel = CTools.optimizer_saved_contmodel.copy()

# Next, estimate the aperture correction.
apercorrs = np.ones(len(phot.synth_bands))
Expand Down
2 changes: 1 addition & 1 deletion py/fastspecfit/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Templates(object):
DEFAULT_IMF = 'chabrier'

# highest vdisp for which we attempt to use cached FFTs
MAX_PRE_VDISP = 400.
MAX_PRE_VDISP = 500.

def __init__(self, template_file=None, template_version=None, imf=None,
mintemplatewave=None, maxtemplatewave=40e4, vdisp_nominal=250.,
Expand Down

0 comments on commit 699c9dc

Please sign in to comment.