tidy3d.plugins.design.ParameterInt#
- class ParameterInt[source]#
Bases:
ParameterNumericParameter containing integers.
- Parameters:
name (Attribute:
name) βTypestr
DefaultDescriptionUnique name for the variable. Used as a key into the parameter sweep results.
values (Attribute:
values) βTypeOptional[Tuple[Any, β¦]]
Default= None
DescriptionIf specified, the parameter scan uses these values for grid search methods.
span (Attribute:
span) βTypeTuple[int, int]
DefaultDescription(min, max)range within which the variable should be swept. Theminvalue is inclusive and themaxvalue is exclusive. In other words, a grid search over this variable will iterate overnp.arange(min, max).
Example
>>> import tidy3d.plugins.design as tdd >>> var = tdd.ParameterInt(name="x", span=(1, 4))
Attributes
Methods
sample_random(num_samples)Sample this design variable randomly 'num_samples' times.
select_from_01(pts_01)Select values given a set of points between 0, 1.
- span#
- __hash__()#
Hash method.