diff --git a/optika/_tests/test_surfaces.py b/optika/_tests/test_surfaces.py index 8c548f9..fcbcf87 100644 --- a/optika/_tests/test_surfaces.py +++ b/optika/_tests/test_surfaces.py @@ -53,9 +53,6 @@ def test_is_field_stop(self, a: optika.surfaces.AbstractSurface): def test_is_aperture_stop(self, a: optika.surfaces.AbstractSurface): assert isinstance(a.is_aperture_stop, bool) - def test_is_spectral_stop(self, a: optika.surfaces.AbstractSurface): - assert isinstance(a.is_spectral_stop, bool) - def test_is_stop(self, a: optika.surfaces.AbstractSurface): assert isinstance(a.is_stop, bool) diff --git a/optika/surfaces.py b/optika/surfaces.py index edf7b97..ec82f23 100644 --- a/optika/surfaces.py +++ b/optika/surfaces.py @@ -106,20 +106,12 @@ def is_aperture_stop(self) -> bool: for the system """ - @property - @abc.abstractmethod - def is_spectral_stop(self) -> bool: - """ - flag controlling whether this surface should act as the surface - determining the wavelength range of the system - """ - @property def is_stop(self) -> bool: """ - If this surface is any type of stop, field/pupil/spectal, return :obj:`True`. + If this surface is pupil stop or the field stop, return :obj:`True`. """ - return self.is_field_stop or self.is_aperture_stop or self.is_spectral_stop + return self.is_field_stop or self.is_aperture_stop def propagate_rays( self,