-
Notifications
You must be signed in to change notification settings - Fork 94
Using the embedded console
Santiago Peñate Vera edited this page Nov 8, 2017
·
2 revisions
What! a python console within a python program?
Exactly. GridCal embeds a IPython console from which you can access Gridcal simulation objects and results.
This allows total freedom of results output and tweaking.
You can access to the circuit objects by:
app.circuit.circuits[0].power_flow_input
-
app
: Is the Application itself. Corresponds to GridCalMain.py -
.circuit
: Is theMultiCurcuit
object instance within the user interface. This is the circuit you are using. -
.circuits[0]
: This is the island of index 0 of the multi circuit. By changing the zero by another index you may access to other islands if they are formed. Each island is aCircuit
object instance.