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
[x] I have read the [CONTRIBUTING.md]() -->
[x] I have added docstrings to all methods
[x] I have added sufficient comments to all lines
[x] I have made corresponding changes to the documentation
[x] My changes generate no pep8 errors
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
At present the
equivalent_width
is calculated on initialisation of aLine
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