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

12 lines
291 B
Python
Raw Normal View History

#######################################
# This example connects to ResInsight
#######################################
2019-06-14 16:07:09 +02:00
import rips
2021-01-26 20:48:01 +01:00
resinsight = rips.Instance.find()
2019-06-14 16:07:09 +02:00
2019-09-19 13:25:04 +02:00
if resinsight is None:
2021-01-26 20:48:01 +01:00
print("ERROR: could not find ResInsight")
else:
2021-01-26 20:48:01 +01:00
print("Successfully connected to ResInsight")