Closed CWE0 closed 3 years ago
Good catch! Would you like to contribute a fix?
Sure I will do
Am 15.11.2020 um 13:30 schrieb Piotr Janiszewski notifications@github.com:
Good catch! Would you like to contribute a fix?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
I've never liked the use of the [n * binsize]
floats as keys into the counts
dictionary. Perhaps it would be more elegant to use int keys instead.
The following script:
produces:
The reason is that rng in line 154-157 is computed via summation while it is computed via the product n*binsize above. Due to round-off the keys are not identical.