Skip to content

Commit

Permalink
Merge pull request #179 from AstarVienna/fh/detectormanager
Browse files Browse the repository at this point in the history
Adapt to changes in ScopeSim
  • Loading branch information
teutoburg committed Jun 30, 2024
2 parents e6d87dc + 04a993a commit 63b8ed9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions HAWKI/test_hawki/test_full_package_hawki.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ def test_works_seamlessly_for_hawki_package(self, capsys):

# test assert there are 4 detectors, each 2048x2048 pixels
hdu = opt.readout()[0]
assert len(opt.detector_arrays[0].detectors) == 4
for detector in opt.detector_arrays[0].detectors:
assert len(opt.detector_managers[0]) == 4
for detector in opt.detector_managers[0]:
assert detector.hdu.header["NAXIS1"] == 2048
assert detector.hdu.header["NAXIS2"] == 2048

Expand Down
6 changes: 3 additions & 3 deletions Paranal/tests/test_paranal.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ class : SkycalcTERCurve
"gain": [1.0]}
x_cen_unit : mm
y_cen_unit : mm
x_len_unit : mm
y_len_unit : mm
x_size_unit : mm
x_size_unit : mm
pixsize_unit : mm
angle_unit : deg
gain_unit : electron/adu
Expand Down Expand Up @@ -152,7 +152,7 @@ def test_flux_scales_with_pixel_scale(self, pixel_scale):

@pytest.mark.parametrize("filter_name, bg_level",
[("J", 674), ("H", 4693), ("Ks", 1026)])
def test_flux_scales_with_pixel_scale(self, filter_name, bg_level):
def test_flux_scales_with_pixel_scale_JHK(self, filter_name, bg_level):
yaml_text = YAML_TEXT % (WAVE_MIN, WAVE_MAX,
PIXEL_SCALE, PIXEL_SCALE,
filter_name)
Expand Down
4 changes: 2 additions & 2 deletions WFC3/test_wfc3/test_full_package_wfc3_ir.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ def test_works_seamlessly_for_wfc3_package(self, capsys):

# test assert there are 1 detector
hdu = opt.readout()[0]
assert len(opt.detector_arrays[0].detectors) == 1
for detector in opt.detector_arrays[0].detectors:
assert len(opt.detector_managers[0]) == 1
for detector in opt.detector_managers[0]:
assert detector.hdu.header["NAXIS1"] == 1024
assert detector.hdu.header["NAXIS2"] == 1024

Expand Down

0 comments on commit 63b8ed9

Please sign in to comment.