mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add missing include and update example
This commit is contained in:
parent
2615b16bae
commit
c158faf5e3
@ -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")
|
||||
|
@ -8,6 +8,7 @@ from .case import Case
|
||||
|
||||
import Commands_pb2
|
||||
from .resinsight_classes import GridCaseGroup
|
||||
from .resinsight_classes import EclipseView
|
||||
|
||||
|
||||
@add_method(GridCaseGroup)
|
||||
|
Loading…
Reference in New Issue
Block a user