Closed vsnever closed 1 year ago
Can you add some tests for both the default lineshape and a custom lineshape?
Can you add some tests for both the default lineshape and a custom lineshape?
Done. I mocked up some atomic data to test the BeamCXLine
model. I think we can use this approach for other emission models as well.
This PR fixes #394 by adding
lineshape
,lineshape_args
andlineshape_kwargs
arguments toBeamCXLine
class. The user can now switch from the defaultGaussianLine
model to something else, such asZeemanMultiplet
.To give some context, there are projects of tokamaks with high magnetic field (B0>8T), e.g. SPARC, TRT, and some of them will have CXRS diagnostics. With such strong magnetic fields, Zeeman splitting cannot be neglected anymore even when calculating the active CXRS signal.