Skip to content
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

test_aperture error in generate_niriss.py #258

Open
Witchblade101 opened this issue Jun 7, 2022 · 0 comments
Open

test_aperture error in generate_niriss.py #258

Witchblade101 opened this issue Jun 7, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Witchblade101
Copy link
Collaborator

Failure in generate_niriss.py . Probably needs the same lines edited as FGS did in test_aperture.py?

(pysiaf) minmei:generate dlong$ python generate_niriss.py **WARNING**: LOCAL JWST PRD VERSION PRDOPSSOC-051 DOESN'T MATCH THE CURRENT ONLINE VERSION PRDOPSSOC-045-003 Please consider updating pysiaf, e.g. pip install --upgrade pysiaf or conda update pysiaf /Users/dlong/pysiaf/generate/generate_niriss.py:104: DeprecationWarning: np.intis a deprecated alias for the builtinint. To silence this warning, use intby itself. Doing this will not modify any behavior and is safe. When replacingnp.int, you may wish to use e.g. np.int64ornp.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
polynomial_degree = np.int((np.sqrt(8 * number_of_coefficients + 1) - 3) / 2)
Wrote Siaf to xml file /Users/dlong/pysiaf/pysiaf/pre_delivery_data/NIRISS/NIRISS_SIAF.xml
Wrote Siaf to xlsx file /Users/dlong/pysiaf/pysiaf/pre_delivery_data/NIRISS/NIRISS_SIAF.xlsx
JWST niriss Siaf with 33 apertures
niriss
Wrote difference file to /Users/dlong/pysiaf/pysiaf/pre_delivery_data/NIRISS/niriss_diff_PRDOPSSOC-051_pre_delivery.txt
JWST niriss Siaf with 33 apertures
niriss
Apertures with significant roundtrip error differences:
AperName siaf0_metric siaf0_dx_mean siaf0_dy_mean ... difference_dx_mean difference_dy_mean difference_dx_rms difference_dy_rms
-------- ------------ ------------- ------------- ... ------------------ ------------------ ----------------- -----------------

Running aperture_transforms test for pre_delivery_siaf
Traceback (most recent call last):
File "/Users/dlong/pysiaf/generate/generate_niriss.py", line 206, in
test_aperture.test_jwst_aperture_transforms([pre_delivery_siaf], verbose=False, threshold=0.04)
File "/Users/dlong/pysiaf/pysiaf/tests/test_aperture.py", line 156, in test_jwst_aperture_transforms
assert error < threshold
AssertionError`

@Witchblade101 Witchblade101 added the bug Something isn't working label Jun 7, 2022
@Witchblade101 Witchblade101 self-assigned this Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant