Skip to content

Commit

Permalink
boundary spec hint the validation type
Browse files Browse the repository at this point in the history
  • Loading branch information
JunchengXue committed Dec 6, 2022
1 parent da5108f commit 3911811
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tidy3d/components/boundary.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def bloch_phase(self) -> Complex:

@classmethod
def from_source(
cls, source: BlochSourceType, domain_size: float, axis: Axis, medium: Medium = None
cls, source: BlochSourceType, domain_size: float, axis: Axis, medium: Medium = None
) -> BlochBoundary:
"""Set the Bloch vector component based on a given angled source and its center frequency.
Note that if a broadband angled source is used, only the frequency components near the
Expand Down Expand Up @@ -188,7 +188,7 @@ class PMLParams(AbsorberParams):
3,
title="Kappa Order",
description="Order of the polynomial describing the PML kappa profile "
"(kappa~dist^kappa_order).",
"(kappa~dist^kappa_order).",
)

kappa_min: pd.NonNegativeFloat = pd.Field(0.0, title="Kappa Minimum", description="")
Expand Down Expand Up @@ -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.",
)
Expand Down

0 comments on commit 3911811

Please sign in to comment.