spacetelescope/pysiaf

test_aperture error in generate_niriss.py

Witchblade101 opened this issue · 0 comments

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`