Default photometric aperture

This commit is contained in:
Lukas Klass 2020-05-20 11:32:11 +02:00
parent b871cef525
commit 48fa7fd481

View File

@ -463,7 +463,8 @@ class Imager(ASensor):
# Check photometric aperture # Check photometric aperture
if conf.astroscene.target.size == "point": if conf.astroscene.target.size == "point":
if not hasattr(sensor, "photometric_aperture"): 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"): if hasattr(sensor.photometric_aperture, "contained_pixels"):
mes = sensor.photometric_aperture.contained_pixels.check_quantity("val", u.pix) mes = sensor.photometric_aperture.contained_pixels.check_quantity("val", u.pix)
if mes is not None: if mes is not None: