core icon indicating copy to clipboard operation
core copied to clipboard

Add tests for radiation models

Open Mateasek opened this issue 5 years ago • 2 comments

Radiation models should get tests making sure they provide the expected spectra and are not changed accidentally:

  • [x] GaussianLine
  • [x] MultipletLineShape
  • [x] StarkBroadenedLine
  • [x] BeamCXLine
  • [ ] BeamEmissionLine

Mateasek avatar Oct 19 '20 10:10 Mateasek

This is a good idea. Will help with documentation and validation as well.

mattngc avatar Oct 19 '20 13:10 mattngc

I am currently adding Zeeman spectral line shapes to Cherab along with unit tests. The TestLineShapes class will also include the tests for GaussianLine, MultipletLineShape and StarkBroadenedLine, because all these models can be tested with the same plasma setup.

vsnever avatar Dec 09 '20 20:12 vsnever