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.