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

Update license year #193

Merged
merged 6 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BSD 3-Clause License

Copyright (c) 2019-2023, Space Telescope Science Institute, AURA
Copyright (c) 2019-2024, Space Telescope Science Institute, AURA
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
Binary file modified stsynphot/tests/data/tables_tmc.fits
Binary file not shown.
453 changes: 362 additions & 91 deletions stsynphot/tests/data/tables_tmg.fits

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion stsynphot/tests/data/tables_tmt.fits

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions stsynphot/tests/test_observationmode.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ def test_throughput(self):
[500, 3797, 4797, 5797, 6797, 7797, 8797, 9797, 10796])
np.testing.assert_allclose(
t(w).value,
[0, 6.87477055e-06, 2.14807644e-01, 2.85725420e-01, 7.34488102e-07,
2.96078061e-08, 3.57507695e-08, 9.99538418e-07, 0], rtol=1e-3)
[0, 6.757692e-06, 2.133779e-01, 2.845666e-01, 7.306088e-07,
2.941201e-08, 3.548093e-08, 9.848318e-07, 0], rtol=1e-3)

def test_sensitivity(self):
sens = self.obsmode.sensitivity
Expand All @@ -171,8 +171,8 @@ def test_sensitivity(self):
[500, 3797, 4797, 5797, 6797, 7797, 8797, 9797, 10796])
np.testing.assert_allclose(
sens(w).value,
[0, 5.94476276e+10, 2.34668703e+15, 3.77214087e+15, 1.13694055e+10,
5.25738140e+08, 7.16235278e+08, 2.23012046e+10, 0], rtol=1e-3)
[0, 5.843521e+10, 2.331067e+15, 3.756842e+15, 1.130935e+10,
5.222613e+08, 7.108290e+08, 2.197307e+10, 0], rtol=1e-3)

def test_interp_two_params(self):
obsmode = observationmode.ObservationMode(
Expand All @@ -195,9 +195,9 @@ def test_thermal_spec(self):
w = [6898, 7192, 7486, 7780, 8630, 11190, 13790, 15670, 17954.90234375]
np.testing.assert_allclose(
thsp(w).value,
[2.911303e-30, 9.52169734e-29, 2.32066138e-27, 4.38458258e-26,
1.86992105e-21, 2.90270169e-15, 3.42776351e-11, 2.15179718e-08,
7.24300701e-09], rtol=5e-3)
[2.911318e-30, 9.554516e-29, 2.328319e-27, 4.398529e-26,
1.863447e-21, 2.897122e-15, 3.428160e-11, 2.136660e-08,
7.252959e-09], rtol=5e-3)


@pytest.mark.remote_data
Expand Down
16 changes: 8 additions & 8 deletions stsynphot/tests/test_spectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,14 @@ def test_other_graph_table(self):

@pytest.mark.parametrize(
('obsmode', 'ans'),
[('acs,hrc,f555w', 2.9788972414188295e-19),
('acs,sbc,f125lp', 1.7218083497870695e-17),
('acs,wfc1,f555w,f814w', 1.7485647715025005e-13),
('cos,boa,fuv,g130m,c1309', 3.8108219824401987e-15),
('stis,ccd,f25ndq1,a2d4,mjd#55555', 3.0597787848106823e-18),
('wfc3,ir,f140w', 1.4737148727216957e-20),
('wfc3,uvis1,f395n', 5.9433862614148255e-18),
('wfc3,uvis2,fq924n', 6.1632709911742462e-18),
[('acs,hrc,f555w', 3.040958e-19),
('acs,sbc,f125lp', 1.295846e-17),
('acs,wfc1,f555w,f814w', 1.80739e-13),
('cos,boa,fuv,g130m,c1309', 5.091488e-15),
('stis,ccd,f25ndq1,a2d4,mjd#55555', 3.064935e-18),
('wfc3,ir,f140w', 1.474866e-20),
('wfc3,uvis1,f395n', 5.958943e-18),
('wfc3,uvis2,fq924n', 6.360089e-18),
('wfpc2,1,a2d7,f300w,cont#49892.0', 6.3011E-17),
('wfpc2,f555w', 4.8967453103320938e-19)])
def test_uresp(self, obsmode, ans):
Expand Down