Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 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
6 changes: 6 additions & 0 deletions METIS/METIS_DET_IFU.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ effects:
noise_std: "!DET.readout_noise"
n_channels: 32

- name: exposure_output
description: Return average or sum over NDIT subexposures
class: ExposureOutput
kwargs:
mode: average

- name: ad_conversion
description: Apply gain and convert electron count into integers
class: ADConversion
Expand Down
7 changes: 7 additions & 0 deletions METIS/METIS_DET_IMG_LM.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,13 @@ effects:
noise_std: "!DET.readout_noise"
n_channels: 32


- name: exposure_output
description: Return average or sum over NDIT subexposures
class: ExposureOutput
kwargs:
mode: average

- name: ad_conversion
description: Apply gain and convert electron counts into integers
class: ADConversion
Expand Down
6 changes: 6 additions & 0 deletions METIS/METIS_DET_IMG_N_Aquarius.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ effects:
noise_std: "!DET.readout_noise"
n_channels: 64

- name: exposure_output
description: Return average or sum over NDIT subexposures
class: ExposureOutput
kwargs:
mode: average

- name: chop_nod
descriptions: chopping and nodding
class: ChopNodCombiner
Expand Down
6 changes: 6 additions & 0 deletions METIS/METIS_DET_IMG_N_GeoSnap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ effects:
noise_std: "!DET.readout_noise"
n_channels: 8

- name: exposure_output
description: Return average or sum over NDIT subexposures
class: ExposureOutput
kwargs:
mode: average

- name: chop_nod
descriptions: chopping and nodding
class: ChopNodCombiner
Expand Down
3 changes: 3 additions & 0 deletions METIS/tests/test_readout_exptime.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"""Test whether giving exptime in readout() is respected."""
import copy
import os
from matplotlib import pyplot as plt
Expand Down Expand Up @@ -34,6 +35,7 @@ def test_readout_exptime():

# The first readout might ignore the exptime.
metis_l = sim.OpticalTrain(cmd_l)
metis_l["exposure_output"].set_mode("sum")
metis_l.observe(star, update=True)
result_first = metis_l.readout(exptime=0.1)[0]
# We need to copy the first readeout, because
Expand All @@ -42,6 +44,7 @@ def test_readout_exptime():

# The second readout might not properly have the detector reset.
metis_l = sim.OpticalTrain(cmd_l)
metis_l["exposure_output"].set_mode("sum")
metis_l.observe(star, update=True)
result_temp = metis_l.readout(exptime=.1)[0]
result_temp_copy = copy.deepcopy(result_temp)
Expand Down