Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add units to IndexPerturbation.frequency #1868

Merged
merged 1 commit into from
Aug 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tidy3d/components/parameter_perturbation.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from ..components.data.validators import validate_no_nans
from ..components.types import TYPE_TAG_STR, ArrayLike, Ax, Complex, FieldVal, InterpMethod
from ..components.viz import add_ax_if_none
from ..constants import CMCUBE, EPSILON_0, KELVIN, PERCMCUBE, inf
from ..constants import CMCUBE, EPSILON_0, HERTZ, KELVIN, PERCMCUBE, inf
from ..exceptions import DataError
from ..log import log
from .base import Tidy3dBaseModel, cached_property
Expand Down Expand Up @@ -1263,6 +1263,7 @@ class IndexPerturbation(Tidy3dBaseModel):
...,
title="Frequency",
description="Frequency to evaluate permittivity at (Hz).",
units=HERTZ,
)

@pd.root_validator(skip_on_failure=True)
Expand Down
Loading