#5757 Python : Add access to summary values

This commit is contained in:
Magne Sjaastad authored and Gaute Lindkvist committed 2020-04-17 13:54:11 +02:00
1 parent 2dcab9981b
commit 6adffe5050
6 files changed
+216

No files matched your search

@@ -0,0 +1,18 @@
# Load ResInsight Processing Server Client Library
import rips
# Connect to ResInsight instance
resinsight = rips.Instance.find()
# Example code
print("ResInsight version: " + resinsight.version_string())
project = resinsight.project
summary_cases = project.descendants(rips.SummaryCase)
firstCase = summary_cases[0]
vector_name = "FOPT"
summary_data = firstCase.summary_vector_values(vector_name)
print("Data for summary vector " + vector_name)
print(summary_data.double_values)