Closed yslai closed 3 years ago
@jmmcd mind taking a look?
The previous PR did not properly handle magnitudes far away from 1. This revised version dynamically sets rangex
according to the floating point property. Also, minx
and maxx
are now scaled to properly recover len(thrs) == ss.num_thrs_per_var + 1
further down in the code.
In #36 (detail) i also had to include a fix for this issue but i think that @jmmcd is right a new threshold for a variable with a constant value is unnecessary and should call continue.
closing this as stale, but please re-open if this is still an issue
Currently, input variables with a constant value will abort with
ValueError: arange: cannot compute length
, due tonumpy.arange()
cannot handling ranges with zero length. This modification adjusts the range min/max such there is a small offset.