Skip to content

Commit fa508d9

Browse files
committed
Update rips module, proto files, and Python examples
1 parent 433f341 commit fa508d9

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import rips
2+
3+
# Connect to ResInsight instance
4+
resInsight = rips.Instance.find()
5+
6+
# Clear any existing MSW grouping pattern to avoid interference with the import
7+
well_path_coll = resInsight.project.well_path_collection()
8+
well_path_coll.set_msw_name_grouping("")
9+
10+
well1 = well_path_coll.import_well_path(
11+
"f:/scratch/2026-well-path-import/Well-1_Y1.dev"
12+
)
13+
well2 = well_path_coll.import_well_path(
14+
"f:/scratch/2026-well-path-import/Well-1_Y2.dev"
15+
)
16+
17+
# Create lateral well path from geometry of another well path
18+
well1.append_lateral_from_geometry(well2)

docs/rips/generated/generated_classes.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3147,6 +3147,18 @@ def import_well_path_from_points_internal(self, name: str="", coordinate_x_key:
31473147
return self._call_pdm_method_return_value("ImportWellPathFromPointsInternal", PointBasedWellPath, name=name, coordinate_x_key=coordinate_x_key, coordinate_y_key=coordinate_y_key, coordinate_z_key=coordinate_z_key)
31483148

31493149

3150+
def set_msw_name_grouping(self, msw_name_grouping: str="") -> None:
3151+
"""
3152+
3153+
3154+
Arguments:
3155+
msw_name_grouping (str):
3156+
Returns:
3157+
3158+
"""
3159+
self._call_pdm_method_void("setMswNameGrouping", msw_name_grouping=msw_name_grouping)
3160+
3161+
31503162
def well_paths(self) -> List[FileWellPath]:
31513163
"""Well Paths
31523164

docs/source/PythonExamples_wells_and_fractures.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,16 @@ Import Well Paths And Logs
156156
:linenos:
157157
:caption: import_well_paths_and_logs.py
158158

159+
.. _wells_and_fractures_import_wells_no_grouping:
160+
161+
Import Wells No Grouping
162+
------------------------
163+
164+
.. literalinclude:: ../rips/PythonExamples/wells_and_fractures/import_wells_no_grouping.py
165+
:language: python
166+
:linenos:
167+
:caption: import_wells_no_grouping.py
168+
159169
.. _wells_and_fractures_modeled_well_path:
160170

161171
Modeled Well Path

0 commit comments

Comments
 (0)