-
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
Failure in test_miri.py::test_against_test_data #256
Comments
Are these errors expected, and we need to change the tolerances, or is something off with the new values? |
MIRI failures begin in PRDOPSSOC-51, which includes changes from JWSTSIAF-210 |
I don't understand this; I ran the test_miri.py script when I ran generate_miri.py and didn't encounter these errors in comparing against MIRI test data. The values in the error log above look like outdated values from a previous version of pysiaf, how was this test being run? Did it use the new values in mirim_siaf_testdata.py that were updated with the PR? |
That's what we're trying to figure out. We started getting all these errors showing up preparing to due a pysiaf release following the procedure at https://innerspace.stsci.edu/pages/viewpage.action?pageId=107324779 starting at "After the PRD is Released." |
I may have fixed it, but I'm too pessimistic to declare victory just yet... |
At a guess I'd say that the MIRI source_data directory hasn't been updated (it got merged to siaf_updates, but doesn't look like it was yet merged to master?). The source_data directory contains test cases specific to the updated XML, so if one updates without the other it will throw errors like this. |
________________________________________________________ test_against_test_data ________________________________________________________
siaf = <pysiaf.Siaf object Instrument=miri >, verbose = False
E AssertionError:
E Not equal to tolerance rtol=1e-07, atol=0.04
E
E Mismatched elements: 15 / 15 (100%)
E Max absolute difference: 1.840769
E Max relative difference: 0.01433061
E x: array([326.13, 693.5 , 516.5 , 953.18, 681.75, 409.81, 137.65, 928.52,
E 658.11, 387.37, 116.34, 904.64, 634.88, 365. , 94.77])
E y: array([327.841595, 695.124727, 518.257992, 954.734981, 683.374363,
E 411.606429, 139.490769, 930.03035 , 659.758194, 389.192884,
E 118.031463, 906.054437, 636.468316, 366.667649, 95.986934])
test_miri.py:75: AssertionError
________________________________________________________ test_against_test_data ________________________________________________________
The text was updated successfully, but these errors were encountered: