Checks improved

This commit is contained in:
Lukas Klass 2020-05-15 11:16:58 +02:00
parent 88d3b509c1
commit 74059f0d4a

View File

@ -264,7 +264,7 @@ class Imager(ASensor):
mes = sensor.pixel.quantum_efficiency.check_file("val") mes = sensor.pixel.quantum_efficiency.check_file("val")
if mes is not None: if mes is not None:
return "pixel -> quantum_efficiency: " + mes return "pixel -> quantum_efficiency: " + mes
if not hasattr(conf.pixel, "pixel_size"): if not hasattr(sensor.pixel, "pixel_size"):
return "Missing container 'pixel_size'." return "Missing container 'pixel_size'."
mes = sensor.pixel.pixel_size.check_quantity("val", u.m) mes = sensor.pixel.pixel_size.check_quantity("val", u.m)
if mes is not None: if mes is not None: