parameters¶
-
class
parameters.AbstractFieldSelector(field_name)[source]¶ Base class for selectors that modify one field in one or more objects in an EnergyPlus building
Parameters: field_name – Name of the field to select -
get(building) → List[source]¶ Gets the current values of this field from a building
Parameters: building – the building to retrieve values from Returns: a list containing the current values of this selector’s fields
-
-
class
parameters.CategoryParameter(options, **kwargs)[source]¶ Parameters: options (list) – a list of possible value this parameter can be set to
-
class
parameters.FieldSelector(class_name = None, object_name = None, field_name = None)[source]¶ A selector that modifies one or more fields in an EnergyPlus building, based on the class, object and field names
Parameters: - class_name – class of the object to modify ex: ‘Material’
- object_name – name of the object to modify ex: ‘Mass NonRes Wall Insulation’
- field_name – name of the field to modify ex: Thickness
-
class
parameters.FilterSelector(get_objects, field_name)[source]¶ A selector that uses a custom function to find which objects it should modify
Parameters: - get_objects – a function that takes a building and returns the objects this selector should modify
- field_name – the field to modify
-
class
parameters.GenericSelector(set = None, get = None, setup = None)[source]¶ A selector that supports custom get/set functions
Parameters: - set –
- get –
- setup –
-
class
parameters.Parameter(selector = None, value_descriptor = None, **kwargs)[source]¶ Parameters: - selector – a Selector describing how to modify the building
- value_descriptor – a Descriptor specifying which values to use
- setup – a setup function to run on the building
-
platypus_type¶ The platypus equivalent of this parameter
-
sample(value)[source]¶ Takes a value in the range 0-1 and returns a valid value for this parameter
Parameters: value (float) –
-
class
parameters.RangeParameter(min_val, max_val)[source]¶ Represents an aspect of a building that can take on value from an interval.
Parameters: - min_val (float) – Minimum value for the range
- max_val (float) – Maximum value for the range
-
pandas_type¶ alias of
builtins.float
-
parameters.expand_plist(pList) → List[source]¶ This function expands a nested dictionary of the correct format into a list of inputs.
The dictionary should have the format: {‘idf object name’: {‘idf object1 property name’: (min_value, max_value)}
Both layers of the dictionaries can have as many names as desired
Parameters: pList (keyFormat) – Nested dictionary Returns: A list of proper inputs