diff --git a/tidy3d/components/geometry/base.py b/tidy3d/components/geometry/base.py index 03470736d1..f3a480d413 100644 --- a/tidy3d/components/geometry/base.py +++ b/tidy3d/components/geometry/base.py @@ -1696,8 +1696,6 @@ class Planar(SimplePlaneIntersection, Geometry, ABC): "along the ``axis`` direction; " "and ``-np.pi/2 float: + lower_bound = -np.pi / 2 + upper_bound = np.pi / 2 + if (value <= lower_bound) or (value >= upper_bound): + # u03C0 is unicode for pi + raise ValidationError( + f"Sidewall angle ({value}) must be between -\u03c0/2 and \u03c0/2 rad." + ) + + return value + @property @abstractmethod def center_axis(self) -> float: