During testing of the correlations feature, I've noticed a bunch of distributions which casually produce overflows. Users wouldn't notice this except for infinities (np.inf) in their samples or distribution parameters.
I've fixed some of these (mostly those related to input parameters) alongside the distributions feature, but some that are still a problem:
- LognormalDistribution:
- LogTDistribution:
I think it would be hard to fix this, most of these errors come from limitations inherent of the floating point operations; but I would at least try to reraise the warning as an error, to prevent users from creating models which might be silently wrong.
During testing of the correlations feature, I've noticed a bunch of distributions which casually produce overflows. Users wouldn't notice this except for infinities (
np.inf) in their samples or distribution parameters.I've fixed some of these (mostly those related to input parameters) alongside the distributions feature, but some that are still a problem:
sq.lognorm(1,1e+26)np.any(sq.log_t_sample(1.0, 2.0, 1, 100_000, 90) == np.inf)I think it would be hard to fix this, most of these errors come from limitations inherent of the floating point operations; but I would at least try to reraise the warning as an error, to prevent users from creating models which might be silently wrong.