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
I got this error message whenever the values of Eemin and Eemax
of naima.models.Synchrotron is too close (encountered in some
extreme parameter choices in GRB study). An example code to
reproduce this error is as below:
For example, if Eemax = 1.01*Eemin, and by default nEed = 100, then
self.nEed * (log10gmax - log10gmin) = 100*log10(1.01) = 0.432, and
int(0.432) = 0, which creates the error.
While increasing nEed solves the problem, I wonder if it is better to
avoid this by restricting the length of sequence to be at least 2, e.g.
Hi,
I got this error message whenever the values of Eemin and Eemax
of naima.models.Synchrotron is too close (encountered in some
extreme parameter choices in GRB study). An example code to
reproduce this error is as below:
I believe it arises from the zero length of the Lorentz factor sequence
in the source code:
For example, if Eemax = 1.01*Eemin, and by default nEed = 100, then
self.nEed * (log10gmax - log10gmin) = 100*log10(1.01) = 0.432, and
int(0.432) = 0, which creates the error.
While increasing nEed solves the problem, I wonder if it is better to
avoid this by restricting the length of sequence to be at least 2, e.g.
The text was updated successfully, but these errors were encountered: