Skip to content

Commit

Permalink
removed unused module to get webbpsf filter info and associated test
Browse files Browse the repository at this point in the history
  • Loading branch information
rcooper295 committed Mar 15, 2024
1 parent 5b181f2 commit e80d8fe
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 121 deletions.
40 changes: 0 additions & 40 deletions jwst/ami/tests/test_ami_analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -1006,46 +1006,6 @@ def test_analyticnrm2_phasor():

assert_allclose(result, true_result, atol=1e-7)


# ---------------------------------------------------------------
# webb_psf module test:
#


def test_webb_psf():
"""Test of PSF() in the webb_psf module:
Create a Throughput datamodel, having a dummy filter bandpass data
that peaks at 1.0 at the center and decreases in the wings.
"""
min_wl = 5000.0 # lowest wavelength
max_wl = 100000.0 # highest wavelength

nelem = 28

wavelength = np.linspace(min_wl, max_wl, nelem, endpoint=True, dtype=np.float32)
throughput = create_throughput(nelem)
dtype = np.dtype([('wavelength', '<f4'), ('throughput', '<f4')])

filt_tab = np.array(list(zip(wavelength, throughput)), dtype=dtype)
filter_model = datamodels.ThroughputModel(filter_table=filt_tab)

bindown = 4

band = webb_psf.get_webbpsf_filter(filter_model, specbin=bindown)
true_band = np.array(
[
[4.05621603e-01, 1.37962969e-06],
[8.10614496e-01, 2.78703703e-06],
[9.50576201e-01, 4.19444444e-06],
[9.74027127e-01, 5.60185185e-06],
[9.01925057e-01, 7.00925932e-06],
[6.51473783e-01, 8.41666679e-06],
]
)

assert_allclose(band, true_band, atol=1e-7)


# ---------------------------------------------------------------
# utility functions:

Expand Down
81 changes: 0 additions & 81 deletions jwst/ami/webb_psf.py

This file was deleted.

0 comments on commit e80d8fe

Please sign in to comment.