update_couplings
update_couplings
Service for update couplings operations.
Classes
UpdateCouplingsRunner
Bases: BaseRunner[Dict[str, Any]]
Runner for updating coupling groups in a scenario.
POST /api/v3/scenarios/{scenario_id}/couple POST /api/v3/scenarios/{scenario_id}/uncouple
Functions
run
staticmethod
Update coupling groups for a scenario.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
client
|
BaseClient
|
The API client |
required |
scenario
|
Any
|
The scenario object with an id attribute |
required |
coupling_groups
|
List[str]
|
List of coupling group names to couple/uncouple |
required |
action
|
str
|
Either "couple" or "uncouple" |
'couple'
|
force
|
bool
|
If True and action is "uncouple", force uncouple all groups |
False
|