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
Issue when using numpy.float64 numbers for the parameters in sunxspex.emission.bremsstrahlung_thick_target as it ends up returning all nans and infs. Weirdly, rounding to 15 decimal places with the values that return nans and infs fixes this.
I've "fixed" this in sunxspex.sunxspex_fitting.photon_models_for_fitting.thick_fn by taking the inputs and rounding to 15 decimal places via np.round([total_eflux, index, e_c], 15) but obviously this isn't ideal.
I will come back and add more detail when I find and log values that produce this weird behaviour but wanted it mentioned somewhere so it doesn't get lost.
To Reproduce
No response
Screenshots
No response
System Details
No response
Installation method
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
Issue when using
numpy.float64
numbers for the parameters insunxspex.emission.bremsstrahlung_thick_target
as it ends up returning allnans
andinfs
. Weirdly, rounding to 15 decimal places with the values that returnnans
andinfs
fixes this.I've "fixed" this in
sunxspex.sunxspex_fitting.photon_models_for_fitting.thick_fn
by taking the inputs and rounding to 15 decimal places vianp.round([total_eflux, index, e_c], 15)
but obviously this isn't ideal.I will come back and add more detail when I find and log values that produce this weird behaviour but wanted it mentioned somewhere so it doesn't get lost.
To Reproduce
No response
Screenshots
No response
System Details
No response
Installation method
No response
The text was updated successfully, but these errors were encountered: