ResInsight/ApplicationCode/GrpcInterface/Python/rips/PythonExamples/launch_with_commandline_options.py

12 lines
447 B
Python
Raw Normal View History

# Load ResInsight Processing Server Client Library
import rips
# Launch ResInsight with last project file and a Window size of 600x1000 pixels
2019-09-19 06:34:34 -05:00
resinsight = rips.Instance.launch(command_line_parameters=['--last', '--size', 600, 1000])
# Get a list of all cases
2019-09-19 06:25:04 -05:00
cases = resinsight.project.cases()
print ("Got " + str(len(cases)) + " cases: ")
for case in cases:
print("Case name: " + case.name)
2019-09-19 04:14:40 -05:00
print("Case grid path: " + case.grid_path())