-
Notifications
You must be signed in to change notification settings - Fork 31
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
Avoid non-unique saturation #457
Conversation
A little bit skeptical to just reduce the accuracy attainable by pyscal. I think there is a different solution to the problem that can be isolated to the sgof-code. Since the problem is flaky and occuring very seldom, there is even no guarantee that this patch will solve it. |
@berland The issue came because Lines 156 to 157 in 4162b12
pyscal/src/pyscal/utils/string.py Line 13 in 4162b12
|
Since it is a (barely) flaky problem, I do believe it passed the test when running reproduce_failure, since you have perturbed the whole setup by changing SWINTEGERS, but that gives me no confidence that the bug has really gone. |
Could be that you make the test fail more reliably by setting a target |
I thought Also, I see that the parameters that are passed to test
compare to the error reported here: https://github.com/equinor/pyscal/actions/runs/10913039495/job/30288816903#step:9:28884 |
I have changed my mind, I think you are on the right track with this PR. Some questions:
|
Let me have a look at it. It could be that failure is due to non-determinism in the algorithm or differences in the environment (which packages are installed). |
In trying to reproduce you get this warning
|
I just ran the code in the PR and got this reproduce string:
The actual failure seems simple enough:
probably due to the following warning:
Note that I needed to use either
We should probably change to the setup used in ert:
|
I thought about it, but doing that will trigger changes in several other places. Some of the test assume a certain SWINTEGERS e.g. Line 78 in 4162b12
That's true. I don't have experience with |
Yes, that warning can be ignored. I think typically end-user will not specify such a low saturation step length. I think the bug will occur for low |
Avoid non-unique saturation by increasing the s[w/g/o]int resolution by factor 10.
Close #444