Closed TedTed closed 1 year ago
Thanks for reporting this. It appears that this bug will affect any float value with absolute value larger than 2**64, which is a wide range of what can be represented in float32
or float64
. Will fix in approx_bounds
to silently filter any values that are outside the range we can measure. To minimize risk of leaking values, we should also remove the assert on line 80.
Fixed in 1.0.1
The
approx_bounds
method in this file fails when infinity or NaN values are passed as input. The following code:works fine, but replacing
"42.17"
by"inf"
or"NaN"
fails withValueError: Value [value] is outside of the range we can use to infer bounds
.This bug propagates to SmartNoise-Synth functions exposed to the end users, because this line only checks for
NaN
values, but not infinity values. So running the following code snippet:works perfectly fine on the
PUMS_null.csv
file in thedatasets/
folder, but replacing a single income value in this file byinf
will raise theValueError
above.