mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-15 18:02:12 -05:00
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)
|