Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
AWehrhahn committed Mar 9, 2021
1 parent 6bcb792 commit 5a857a5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/pysme/synthesize.py
Original file line number Diff line number Diff line change
Expand Up @@ -673,13 +673,13 @@ def synthesize_segment(
sint = self.integrate_flux(sme.mu, y_integrated, vstep, sme.vsini, sme.vmac)
wint = wgrid

# instrument broadening
if "iptype" in sme:
logger.debug("Apply detector broadening")
ipres = sme.ipres if np.size(sme.ipres) == 1 else sme.ipres[segment]
sint = broadening.apply_broadening(
ipres, wint, sint, type=sme.iptype, sme=sme
)
# instrument broadening
if "iptype" in sme:
logger.debug("Apply detector broadening")
ipres = sme.ipres if np.size(sme.ipres) == 1 else sme.ipres[segment]
sint = broadening.apply_broadening(
ipres, wint, sint, type=sme.iptype, sme=sme
)

# Divide calculated spectrum by continuum
if sme.normalize_by_continuum:
Expand Down

0 comments on commit 5a857a5

Please sign in to comment.