mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-15 09:52:11 -05:00
First implementation with Asynchronous gRPC server, a few services and some client python code.
11 lines
294 B
Python
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) |