xsimlab.group¶
-
xsimlab.
group
(name)¶ Create a special variable which value returns an iterable of values of variables in a model that all belong to the same group.
Access to the variable values is read-only (i.e., intent=’in’).
Good examples of using group variables are processes that aggregate (e.g., sum, product, mean) the values of variables that are defined in various other processes in a model.
- Parameters
name (str) – Name of the group.
See also