Files
ResInsight/GrpcInterface/Python/rips/PythonExamples/all_wells.py

18 lines
589 B
Python
Raw Permalink Normal View History

2020-02-11 14:52:01 +01:00
###################################################################################
# This example will connect to ResInsight, retrieve a list of wells and print info
#
###################################################################################
# Import the ResInsight Processing Server Module
import rips
# Connect to ResInsight
2021-01-26 20:48:01 +01:00
resinsight = rips.Instance.find()
2020-02-11 14:52:01 +01:00
if resinsight is not None:
# Get a list of all wells
wells = resinsight.project.well_paths()
2020-02-11 14:52:01 +01:00
2021-01-26 20:48:01 +01:00
print("Got " + str(len(wells)) + " wells: ")
2020-02-11 14:52:01 +01:00
for well in wells:
print("Well name: " + well.name)