Skip to content

Commit d109319

Browse files
authored
Added Camera.timedelta_exposure attribute. (#32)
1 parent bdc3aa6 commit d109319

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

msfc_ccd/_cameras.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ def sensor(self) -> AbstractSensor:
2828
def gain(self) -> u.Quantity | na.AbstractScalar:
2929
"""The conversion factor between electrons and ADC counts."""
3030

31+
@property
32+
@abc.abstractmethod
33+
def timedelta_exposure(self) -> u.Quantity | na.AbstractScalar:
34+
"""The current exposure length."""
35+
3136
@classmethod
3237
def calibrate_timedelta_exposure(cls, value: int) -> u.Quantity:
3338
"""
@@ -126,6 +131,9 @@ class Camera(
126131
bits_adc: int = 16
127132
"""The number of bits supported by the analog-to-digital converter"""
128133

134+
timedelta_exposure: u.Quantity = 10 * u.s
135+
"""The current exposure length."""
136+
129137
timedelta_exposure_min: u.Quantity = 2 * u.s
130138
"""The minimum exposure length supported by this camera."""
131139

0 commit comments

Comments
 (0)