Skip to content

Commit

Permalink
add units to IndexPerturbation.frequency
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerflex committed Aug 5, 2024
1 parent 860c1d1 commit f1b299e
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit f1b299e

Please sign in to comment.