CRPropa is a public astrophysical simulation framework for propagating extraterrestrial ultra-high energy particles. https://crpropa.github.io/CRPropa3/
Describe the bug
I would expect the TurbulenceSpectrum constructor to initialize sIndex to 5/3 by default (and this seems to be the intent of the code). Instead, it appears to be initialized to 5.
To Reproduce
from crpropa import TurbulenceSpectrum
spectrum = TurbulenceSpectrum(1, 1, 10)
print(spectrum.getSindex())
Expected behavior
The output should be 5/3, ie someting like 1.67. (The actual output is 5.0.)
System (please complete the following information):
Describe the bug I would expect the TurbulenceSpectrum constructor to initialize sIndex to 5/3 by default (and this seems to be the intent of the code). Instead, it appears to be initialized to 5.
To Reproduce
Expected behavior The output should be 5/3, ie someting like 1.67. (The actual output is
5.0
.)System (please complete the following information):