Input¶
Classes for defining inputs.
IndexTagger
¶
IndexTagger(*index_trios)
Tag regular commands by indexing.
This tagger locates the EnergyPlus field to be modified through indexing, which is informed by an index trio comprising the class name, the object name and the field name. Multiple index trios can be specified to modify multiple EnergyPlus fields with the same value.
Currently, tagging inside macro files are not supported.
| PARAMETER | DESCRIPTION |
|---|---|
*index_trios
|
Single or multiple index trios.
TYPE:
|
StringTagger
¶
StringTagger(*string_trios)
Tag regular and macro commands by string replacement.
This tagger locates the regular or the macro command to be modified through string replacement, which is informed by an string trio comprising the string, the prefix and the suffix. Multiple string trios can be specified to modify multiple regular or macro commands with the same value.
The prefix and the suffix are useful to delimit the right string to be replaced, when the string itself is not unique in the EnergyPlus model.
Currently, tagging inside macro files are not supported.
| PARAMETER | DESCRIPTION |
|---|---|
*string_trios
|
Single or multiple string trios.
TYPE:
|
WeatherModifier
¶
WeatherModifier(*options, distribution=None, is_noise=False, name='')
Modify the weather input variable.
| PARAMETER | DESCRIPTION |
|---|---|
*options
|
Single or multiple options.
TYPE:
|
distribution
|
Probability distribution defined by
TYPE:
|
is_noise
|
Whether the variable is uncertain.
TYPE:
|
name
|
Variable name.
TYPE:
|
ContinuousModifier
¶
ContinuousModifier(
low, high, /, *, distribution=None, is_noise=False, tagger=None, name=""
)
Modify a continuous input variable.
| PARAMETER | DESCRIPTION |
|---|---|
low
|
Lower limit.
TYPE:
|
high
|
Upper limit.
TYPE:
|
distribution
|
Probability distribution defined by
TYPE:
|
is_noise
|
Whether the variable is uncertain.
TYPE:
|
tagger
|
A tagger object.
TYPE:
|
name
|
Variable name.
TYPE:
|
DiscreteModifier
¶
DiscreteModifier(*options, distribution=None, is_noise=False, tagger=None, name='')
Modify a discrete input variable.
| PARAMETER | DESCRIPTION |
|---|---|
*options
|
Single or multiple options.
TYPE:
|
distribution
|
Probability distribution defined by
TYPE:
|
is_noise
|
Whether the variable is uncertain.
TYPE:
|
tagger
|
A tagger object.
TYPE:
|
name
|
Variable name.
TYPE:
|
CategoricalModifier
¶
CategoricalModifier(*options, distribution=None, is_noise=False, tagger=None, name='')
Modify a categorical input variable.
| PARAMETER | DESCRIPTION |
|---|---|
*options
|
Single or multiple options.
TYPE:
|
distribution
|
Probability distribution defined by
TYPE:
|
is_noise
|
Whether the variable is uncertain.
TYPE:
|
tagger
|
A tagger object.
TYPE:
|
name
|
Variable name.
TYPE:
|
FunctionalModifier
¶
FunctionalModifier(func, /, input_indices, func_kwargs=None, *, tagger=None, name='')
Modify a functional input variable.
This modifier is useful to define dependent input variables.
| PARAMETER | DESCRIPTION |
|---|---|
func
|
A function that takes a tuple of input values as the argument and returns an input value.
TYPE:
|
input_indices
|
Coincident input indices to input values passed into
TYPE:
|
func_kwargs
|
Additional keyword arguments passed into
TYPE:
|
tagger
|
A tagger object.
TYPE:
|
name
|
Variable name.
TYPE:
|