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

Remove testing statement to ignore import failure #8977

Merged
merged 6 commits into from
Nov 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions jwst/lib/tests/test_siafdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import os
from pathlib import Path
import pytest
import pysiaf

from jwst.lib import siafdb

import pysiaf # type: ignore[import-not-found] # noqa: E402

# Database paths
DATA_PATH = Path(__file__).parent / 'data'
Expand Down Expand Up @@ -53,19 +53,23 @@ def test_create(source, prd, xml_path, exception, jail_environ):
('FGS1_FULL_OSS', False,
siafdb.SIAF(v2_ref=206.407, v3_ref=-697.765, v3yangle=-1.24120427, vparity=1,
crpix1=1024.5, crpix2=1024.5, cdelt1=0.06839158, cdelt2=0.06993081,
vertices_idl=(-68.8543, 70.1233, 71.5697, -70.2482, 72.1764, 68.8086, -75.5918, -70.7457))),
vertices_idl=(-68.8543, 70.1233, 71.5697, -70.2482, 72.1764, 68.8086,
-75.5918, -70.7457))),
('FGS2_FULL_OSS', False,
siafdb.SIAF(v2_ref=22.865, v3_ref=-699.28, v3yangle=0.2914828, vparity=1,
crpix1=1024.5, crpix2=1024.5, cdelt1=0.06787747, cdelt2=0.06976441,
vertices_idl=(-70.7843, 69.9807, 68.6042, -69.4153, -74.3558, -71.5516, 71.3065, 69.3639))),
vertices_idl=(-70.7843, 69.9807, 68.6042, -69.4153, -74.3558, -71.5516,
71.3065, 69.3639))),
('MIRIM_TAMRS', False,
siafdb.SIAF(v2_ref=-481.987342, v3_ref=-318.206242, v3yangle=4.83544897, vparity=-1,
crpix1=24.5, crpix2=24.5, cdelt1=0.10986808, cdelt2=0.10996394,
vertices_idl=(-2.6187, 2.6558, 2.6186, -2.6535, -2.6097, -2.6715, 2.6068, 2.6683))),
vertices_idl=(-2.6187, 2.6558, 2.6186, -2.6535, -2.6097, -2.6715,
2.6068, 2.6683))),
('MIRIM_TAMRS', True,
siafdb.SIAF(v2_ref=-481.987342, v3_ref=-318.206242, v3yangle=4.83544897, vparity=-1,
crpix1=997.5, crpix2=993.5, cdelt1=0.10986808, cdelt2=0.10996394,
vertices_idl=(-2.6187, 2.6558, 2.6186, -2.6535, -2.6097, -2.6715, 2.6068, 2.6683))),
vertices_idl=(-2.6187, 2.6558, 2.6186, -2.6535, -2.6097, -2.6715,
2.6068, 2.6683))),
]
)
def test_get_wcs(aperture, to_detector, expected):
Expand Down
Loading