-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
max_cc_value > 1.0 on some machines #8
Comments
Hmm..I'd argue its due to We could just clip the value, e.g. |
Yes, should not be a big issue. Though brutally apply np.clip() makes me a little uncomfortable :) I think it is fine. In you pyflex.Window, you have "eq" method, which strictly compares everything.
I am using |
Yea me too...but in this case I'm quite confident the logic is correct.
No that's not a good one at all especially for floating point numbers so feel free to change it to something a bit better! |
Just change the |
Got it. |
Sort of dirty fix?
I have done it in my devel branch on my repo. |
Hi,
I recently discover pyflex is generating max_cc_value > 1.0 on one window.
One one machine:
It is just slightly larger than 1.0. I discovered it because I am using pytest to do some tests and I am comparing the results generating from another machine.
On another one(the benchmark result):
It is a bit strange since theoretically, max_cc_value should be =< 1.0. Not sure it is a machine precision issue, an numpy issue or algorithm issue.
The text was updated successfully, but these errors were encountered: