From 342c9f5dfac2691c675fff61af268d5ede24cd84 Mon Sep 17 00:00:00 2001 From: LukasK13 Date: Mon, 5 Oct 2020 20:45:05 +0200 Subject: [PATCH] Use aperture size as diameter of the photometric aperture --- esbo_etc/classes/sensor/Imager.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/esbo_etc/classes/sensor/Imager.py b/esbo_etc/classes/sensor/Imager.py index bfe5bfc..18f042d 100644 --- a/esbo_etc/classes/sensor/Imager.py +++ b/esbo_etc/classes/sensor/Imager.py @@ -361,10 +361,8 @@ class Imager(ASensor): else: # Target is a point source if self.__aperture_size is not None: - # Calculate the diameter of the photometric aperture as square root of the contained pixels - d_photometric_ap = np.sqrt(self.__aperture_size.value) * u.pix - # Mask the pixels to be exposed - mask.createPhotometricAperture("square", d_photometric_ap / 2, np.array([0, 0]) << u.pix) + # Us ethe aperture size as diameter + d_photometric_ap = self.__aperture_size else: # Calculate the diameter of the photometric aperture from the given contained energy logger.info("Calculating the diameter of the photometric aperture...",