From 60caae37e7fc03c5b558e8472d5dc231f31b3983 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Tue, 7 Apr 2020 10:16:27 +0200 Subject: [PATCH] Summary Data : Update example --- .../Python/rips/PythonExamples/summary_vectors.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ApplicationCode/GrpcInterface/Python/rips/PythonExamples/summary_vectors.py b/ApplicationCode/GrpcInterface/Python/rips/PythonExamples/summary_vectors.py index a3b87273d7..05a988409e 100644 --- a/ApplicationCode/GrpcInterface/Python/rips/PythonExamples/summary_vectors.py +++ b/ApplicationCode/GrpcInterface/Python/rips/PythonExamples/summary_vectors.py @@ -1,18 +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) +# Assumes at least one summery case loaded 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) +print(summary_data.values) + +time_steps = firstCase.available_time_steps() +print(time_steps.values)