cherab / core

The core source repository for the Cherab project.
https://www.cherab.info
Other
45 stars 24 forks source link

Add numerical integration of bremsstrahlung over spectral bins #395

Closed vsnever closed 11 months ago

vsnever commented 1 year ago

Since integrators are now added to Cherab, when calculating the bremsstrahlung spectrum, the half-sum of the values at the lower and upper ends of the spectral bin can be replaced by integration.

https://github.com/cherab/core/blob/365c211acc1a3bfc45b273ab52d03f593b1fc4e2/cherab/core/model/plasma/bremsstrahlung.pyx#L110-L122

vsnever commented 11 months ago

Implemented in #402.