Skip to content

Commit

Permalink
Making bend radius a positive float
Browse files Browse the repository at this point in the history
  • Loading branch information
momchil-flex committed Dec 6, 2023
1 parent 2156b42 commit 5b2f7ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tidy3d/components/mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class ModeSpec(Tidy3dBaseModel):
"single precision, but more accurate under double precision.",
)

bend_radius: float = pd.Field(
bend_radius: pd.PositiveFloat = pd.Field(
None,
title="Bend radius",
description="A curvature radius for simulation of waveguide bends. Can be negative, in "
Expand Down

0 comments on commit 5b2f7ac

Please sign in to comment.