#13562 Add python api for getting parent well path

Fixes #13562.
This commit is contained in:
Kristian Bendiksen committed 2026-02-06 13:32:22 +01:00
1 parent 9ad2a76f1d
commit 0dfbcd34f6
4 files changed
+115 -1

No files matched your search

@@ -47,7 +47,6 @@ target = geometry.append_well_target(coord)
coord = [2054.28, -100, 45]
target = geometry.append_well_target(coord)
# Wait 2 second
print("Wait 2 seconds ...")
time.sleep(2)
@@ -57,3 +56,12 @@ geometry = well_path.well_path_geometry()
reference_point = geometry.reference_point
reference_point[2] += 50
geometry.update() # Commit updates back to ResInsight
# Check that lateral is a lateral
parentWell = lateral.parent_branch()
if parentWell != None:
print("Parent is " + parentWell.name)
if parentWell.parent_branch() == None:
print("Parent is top level well.")