Add missing include and update example

This commit is contained in:
Magne Sjaastad 2023-02-05 09:31:22 +01:00
parent 2615b16bae
commit c158faf5e3
2 changed files with 2 additions and 10 deletions

View File

@ -17,16 +17,7 @@ for case_path in case_paths:
case_group = resinsight.project.create_grid_case_group(case_paths=case_paths)
case_group.print_object_info()
# stat_cases = caseGroup.statistics_cases()
# case_ids = []
# for stat_case in stat_cases:
# stat_case.set_dynamic_properties_to_calculate(["SWAT"])
# case_ids.append(stat_case.id)
case_group.compute_statistics()
view = case_group.views()[0]
cell_result = view.cell_result()
cell_result.set_result_variable("PRESSURE_DEV")
view.apply_cell_result("DYNAMIC_NATIVE", "PRESSURE_DEV")

View File

@ -8,6 +8,7 @@ from .case import Case
import Commands_pb2
from .resinsight_classes import GridCaseGroup
from .resinsight_classes import EclipseView
@add_method(GridCaseGroup)