Skip to content

Commit

Permalink
Fixing emergent spectra issue #550 (#551)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenmwilkins authored Mar 26, 2024
2 parents 311fe24 + 166ca9a commit bce9ced
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/synthesizer/components/stellar.py
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,11 @@ def get_spectra_pacman(
+ self.spectra["old_attenuated"]._lnu
)

# Combine emergent spectra for young and old stars
self.spectra["emergent"] = (
self.spectra["young_emergent"] + self.spectra["old_emergent"]
)

# Force updating of the bolometric luminosity attribute. I don't
# know why this is necessary.
self.spectra["young_emergent"].measure_bolometric_luminosity()
Expand Down

0 comments on commit bce9ced

Please sign in to comment.