-
Notifications
You must be signed in to change notification settings - Fork 28
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
Rampfit test intermittently failing #769
Comments
Note that this does not happen very often locally, but I can get it to reappear I think the issue is the very tight tolerances meaning larger fluctuations due to randomness occasionally escape the tolerances (notice how tiny the differences are above). In any case, the randomness should be seeded as it is just used as a convenient way to generate data. |
I stumbled on this issue as well. This test originally tested against the one pixel that was forced to have a value of 10, but in #725 we changed that to point to a different pixel. I think the real fix to 725 is a little different---the change to stcal meant that group_time started getting used, which is -99999 and causes an issue here. I'll put in a fix for that soon, but I agree that seeding makes sense too. |
Yes, I am working through all of the romancal tests so that it uses the numpy random generators: using an arbitrarily fixed seed. |
This does intermittently fail in the regression suite as well, see: https://plwishmaster.stsci.edu:8081/job/RT/job/Roman-Developers-Pull-Requests/268/testReport/junit/romancal.ramp_fitting.tests/test_ramp_fit/_stable_deps__test_one_group_small_buffer_fit_ols_none_/ |
The fix in #725 does not quite work all of the time, on the main branch I am getting intermittent failures in the
test cases. Iterative running of this test locally (it is skipped in CI) reproduces the error locally for me. For example I get the error:
I believe the root of this error is:
romancal/romancal/ramp_fitting/tests/test_ramp_fit.py
Lines 32 to 36 in 2396bc7
The intermittent failure is caused by the fact that the data/err change from run-to-run of the tests. Instead, the random number generator should be seeded so that every test is exactly reproducible among different test runs.
The text was updated successfully, but these errors were encountered: