flaresimulations / synthesizer

Synthesizer - a code for creating synthetic astrophysical observables
https://flaresimulations.github.io/synthesizer/
GNU General Public License v3.0
17 stars 9 forks source link

Replace equivalent_width attribute with method #696

Closed stephenmwilkins closed 3 months ago

stephenmwilkins commented 3 months ago

At present the equivalent_width is calculated on initialisation of a Line object. However, if the line or continuum luminosity is updated it will then be wrong.

Instead I've replaced the attribute with a method and added the @property decorator.

Closes #590.

Checklist