How do you assign study cases and commands to a Task Automation with a Python script?
Category:
Scripting
Answer
The Task Automation command (ComTasks) enables the PowerFactory user to run a list of various tasks ranging from specific PowerFactory power system analysis calculation functions up to generic data handling/processing jobs (via scripts) in parallel or sequentially.
The configuration of the ComTasks can be done manually or automatically for a complete set of study cases.
The attached PowerFactory project contains an embedded Python script in the Project Library => Scripts => "Task Automation". The script assigns all study cases to the ComTask and adds the ComSim command to each study case in the ComTask automatically. Thus, the manual assignment is no longer necessary.