From de04fb25b0a48bbe4d2fe7c2f248f8fa335f38da Mon Sep 17 00:00:00 2001 From: Roy Smart Date: Sat, 20 Jul 2024 13:31:03 -0600 Subject: [PATCH] Fixed bug where the detector was not set as the system sensor. (#9) --- esis/optics/_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esis/optics/_models.py b/esis/optics/_models.py index fce38b8..ff7e7fe 100644 --- a/esis/optics/_models.py +++ b/esis/optics/_models.py @@ -155,7 +155,6 @@ def system(self) -> optika.systems.SequentialSystem: surfaces += [self.field_stop.surface] surfaces += [self.grating.surface] surfaces += self.filter.surfaces if self.filter is not None else [] - surfaces += [self.detector.surface] wavelength_min = self.wavelength_min wavelength_max = self.wavelength_max @@ -165,6 +164,7 @@ def system(self) -> optika.systems.SequentialSystem: result = optika.systems.SequentialSystem( surfaces=surfaces, + sensor=self.detector.surface, grid_input=grid, transformation=self.transformation, )