Skip to content

Commit

Permalink
Fixed bug where the detector was not set as the system sensor.
Browse files Browse the repository at this point in the history
  • Loading branch information
byrdie committed Jul 20, 2024
1 parent e8c7e83 commit 414fb9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esis/optics/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
)
Expand Down

0 comments on commit 414fb9c

Please sign in to comment.