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

11 lines
288 B
Python
Raw Normal View History

#######################################
# This example connects to ResInsight
#######################################
2019-06-14 09:07:09 -05:00
import rips
2019-09-19 06:25:04 -05:00
resinsight = rips.Instance.find()
2019-06-14 09:07:09 -05:00
2019-09-19 06:25:04 -05:00
if resinsight is None:
print('ERROR: could not find ResInsight')
else:
print('Successfully connected to ResInsight')