diff --git a/esbo_etc/classes/sensor/ASensor.py b/esbo_etc/classes/sensor/ASensor.py index 5654f8b..8dbae5b 100644 --- a/esbo_etc/classes/sensor/ASensor.py +++ b/esbo_etc/classes/sensor/ASensor.py @@ -22,7 +22,7 @@ class ASensor: @abstractmethod @u.quantity_input(exp_time="time") - def getSNR(self, exp_time: u.Quantity): + def getSNR(self, exp_time: u.Quantity) -> u.dimensionless_unscaled: """ Calculate the signal to noise ratio (SNR) for the given exposure time. @@ -33,14 +33,14 @@ class ASensor: Returns ------- - snr : float + snr : Quantity The calculated SNR """ pass @abstractmethod @u.quantity_input(snr=u.dimensionless_unscaled) - def getExpTime(self, snr: u.Quantity): + def getExpTime(self, snr: u.Quantity) -> u.s: """ Calculate the necessary exposure time in order to achieve the given SNR. @@ -58,7 +58,7 @@ class ASensor: @abstractmethod @u.quantity_input(exp_time="time", snr=u.dimensionless_unscaled, target_brightness=u.mag) - def getSensitivity(self, exp_time: u.Quantity, snr: u.Quantity, target_brightness: u.Quantity): + def getSensitivity(self, exp_time: u.Quantity, snr: u.Quantity, target_brightness: u.Quantity) -> u.mag: """ Calculate the sensitivity of the telescope detector combination. diff --git a/esbo_etc/classes/sensor/Imager.py b/esbo_etc/classes/sensor/Imager.py index 13728b0..6a1b9aa 100644 --- a/esbo_etc/classes/sensor/Imager.py +++ b/esbo_etc/classes/sensor/Imager.py @@ -150,7 +150,7 @@ class Imager(ASensor): return exp_time @u.quantity_input(exp_time="time", snr=u.dimensionless_unscaled, target_brightness=u.mag) - def getSensitivity(self, exp_time: u.Quantity, snr: u.Quantity, target_brightness: u.Quantity): + def getSensitivity(self, exp_time: u.Quantity, snr: u.Quantity, target_brightness: u.Quantity) -> u.mag: """ Calculate the sensitivity of the telescope detector combination.