You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 17, 2023. It is now read-only.
The quad integrate method from scipy on CreateBackgroundSpectrumMEGAlib.py lead to several errors. Using the method trapz from numpy solved the issue.
I just had to replace the line
Hello,
The
quadintegrate method from scipy onCreateBackgroundSpectrumMEGAlib.pylead to several errors. Using the methodtrapzfrom numpy solved the issue.I just had to replace the line
LEOBackground/CreateBackgroundSpectrumMEGAlib.py
Line 64 in b8898ce
IntSpectrum = np.trapz(Megalibfunc[i](Energies),Energies)Also for the computation of the flux for the primary particles, the solar mod factor is computed but not implemented :
LEOBackground/LEOBackgroundGenerator.py
Line 502 in b8898ce
the output should look like that :
f(E)*redfac*solmodfac?