Skip to content

Commit 3028d3d

Browse files
committed
Update rips module, proto files, and Python examples
1 parent f82f88f commit 3028d3d

File tree

2 files changed

+40
-3
lines changed

2 files changed

+40
-3
lines changed

docs/rips/generated/RiaVersionInfo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
# Python version of RiaVersionInfo.h
1717
# Just sets version constants
1818

19-
RESINSIGHT_MAJOR_VERSION : str = "2025"
20-
RESINSIGHT_MINOR_VERSION : str = "12"
21-
RESINSIGHT_PATCH_VERSION : str = "1"
19+
RESINSIGHT_MAJOR_VERSION : str = "2026"
20+
RESINSIGHT_MINOR_VERSION : str = "02"
21+
RESINSIGHT_PATCH_VERSION : str = "0"
2222

2323
PYTHON_GRPC_PROTOC_VERSION : str = "libprotoc 31.1"

docs/rips/tests/test_completion_export.py

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,3 +162,40 @@ def test_export_completion_files_split_by_well(rips_instance, initialize_test):
162162

163163
finally:
164164
pass # Keep exported files in the output directory
165+
166+
167+
def test_export_completion_dual_porosity_model(rips_instance, initialize_test):
168+
case_root_path = dataroot.PATH + "/dualporo-testcase"
169+
project_path = case_root_path + "/Well-completions-mail.rsp"
170+
project = rips_instance.project.open(path=project_path)
171+
172+
export_folder = os.path.abspath(case_root_path + "/completion_export_output")
173+
os.makedirs(export_folder, exist_ok=True)
174+
175+
try:
176+
rips_instance.set_export_folder(export_type="COMPLETIONS", path=export_folder)
177+
178+
case = project.cases()[0]
179+
180+
# Use Well-1 for all tests
181+
test_wells = ["PH", "PV"]
182+
183+
case.export_well_path_completions(
184+
time_step=0, # Use time step 0 instead of 1
185+
well_path_names=test_wells,
186+
file_split="SPLIT_ON_WELL",
187+
include_perforations=True,
188+
include_fishbones=False, # This matches the reference generation script
189+
export_comments=False,
190+
)
191+
192+
# Compare exported files with reference data
193+
reference_folder = case_root_path + "/completion_export_reference"
194+
compare_exported_files_with_reference(
195+
export_folder,
196+
reference_folder,
197+
"dual porosity completion data from fracture cells",
198+
)
199+
200+
finally:
201+
pass # Keep exported files in the output directory

0 commit comments

Comments
 (0)