mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
23 lines
743 B
Python
23 lines
743 B
Python
###################################################################################
|
|
# This example will connect to ResInsight, retrieve a list of cases and print info
|
|
# Also creates a new view for all cases
|
|
###################################################################################
|
|
|
|
# Import the ResInsight Processing Server Module
|
|
import rips
|
|
|
|
# Connect to ResInsight
|
|
resInsight = rips.Instance.find()
|
|
if resInsight is not None:
|
|
# Get a list of all cases
|
|
cases = resInsight.project.cases()
|
|
|
|
print ("Got " + str(len(cases)) + " cases: ")
|
|
for case in cases:
|
|
print("Case name: " + case.name)
|
|
print("Case grid path: " + case.gridPath())
|
|
# Create a new view
|
|
view = case.createView()
|
|
|
|
|