From 74059f0d4a5d743df6b74e851c3ee5ada4324236 Mon Sep 17 00:00:00 2001 From: LukasK13 Date: Fri, 15 May 2020 11:16:58 +0200 Subject: [PATCH] Checks improved --- esbo_etc/classes/sensor/Imager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esbo_etc/classes/sensor/Imager.py b/esbo_etc/classes/sensor/Imager.py index 15f93cf..b6276e5 100644 --- a/esbo_etc/classes/sensor/Imager.py +++ b/esbo_etc/classes/sensor/Imager.py @@ -264,7 +264,7 @@ class Imager(ASensor): mes = sensor.pixel.quantum_efficiency.check_file("val") if mes is not None: return "pixel -> quantum_efficiency: " + mes - if not hasattr(conf.pixel, "pixel_size"): + if not hasattr(sensor.pixel, "pixel_size"): return "Missing container 'pixel_size'." mes = sensor.pixel.pixel_size.check_quantity("val", u.m) if mes is not None: