Files
ResInsight/Python/examples/CommandExample.py
T
Gaute Lindkvist 922386c673 #4416 First implementation of gRPC-based Python interface
First implementation with Asynchronous gRPC server, a few services and some client python code.
2019-05-20 13:21:02 +02:00

11 lines
294 B
Python

import sys
import os
sys.path.insert(1, os.path.join(sys.path[0], '../api'))
import ResInsight
# Load instance
resInsight = ResInsight.Instance.find()
# Run a couple of commands
resInsight.commands.setTimeStep(caseId=0, timeStep=3)
resInsight.commands.setMainWindowSize(width=800, height=500)