diff --git a/tidy3d/components/boundary.py b/tidy3d/components/boundary.py index 1ad842bd2..c7f0b8c50 100644 --- a/tidy3d/components/boundary.py +++ b/tidy3d/components/boundary.py @@ -343,12 +343,14 @@ class Boundary(Tidy3dBaseModel): plus: BoundaryEdgeType = pd.Field( Periodic(), + discriminator="type", title="Plus BC", description="Boundary condition on the plus side along a dimension.", ) minus: BoundaryEdgeType = pd.Field( Periodic(), + discriminator="type", title="Minus BC", description="Boundary condition on the minus side along a dimension.", )