From 48fa7fd481016dddef5e0718dd28d5c0042792b0 Mon Sep 17 00:00:00 2001 From: LukasK13 Date: Wed, 20 May 2020 11:32:11 +0200 Subject: [PATCH] Default photometric aperture --- esbo_etc/classes/sensor/Imager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esbo_etc/classes/sensor/Imager.py b/esbo_etc/classes/sensor/Imager.py index ebdb4c8..2ae438f 100644 --- a/esbo_etc/classes/sensor/Imager.py +++ b/esbo_etc/classes/sensor/Imager.py @@ -463,7 +463,8 @@ class Imager(ASensor): # Check photometric aperture if conf.astroscene.target.size == "point": if not hasattr(sensor, "photometric_aperture"): - return "Missing container 'photometric_aperture'." + setattr(sensor, "photometric_aperture", Entry(shape=Entry(val="circle"), + contained_energy=Entry(val="FWHM"))) if hasattr(sensor.photometric_aperture, "contained_pixels"): mes = sensor.photometric_aperture.contained_pixels.check_quantity("val", u.pix) if mes is not None: