Skip to content

Commit

Permalink
Modified esis.optics.AbstractDetector.surface to use the new `optik…
Browse files Browse the repository at this point in the history
…a.sensors.ImagingSensor` class
  • Loading branch information
byrdie committed Jul 20, 2024
1 parent 737b7dc commit 9ed0071
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions esis/optics/_detectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,14 @@ def clearance(self) -> u.Quantity | na.AbstractScalar:
"""minimum distance between this component and other components"""

@property
def surface(self) -> optika.surfaces.Surface:
return optika.surfaces.Surface(
def surface(self) -> optika.sensors.ImagingSensor:
return optika.sensors.ImagingSensor(
name="detector",
aperture=optika.apertures.RectangularAperture(
half_width=self.width_clear / 2,
active=False,
),
width_pixel=self.width_pixels,
axis_pixel=na.Cartesian2dVectorArray("detector_x", "detector_y"),
num_pixel=self.shape_pixels,
timedelta_exposure=self.time_exposure,
material=optika.sensors.E2VCCDAIAMaterial(),
aperture_mechanical=optika.apertures.RectangularAperture(
half_width=self.width_mechanical / 2
),
Expand Down

0 comments on commit 9ed0071

Please sign in to comment.