mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 14:40:26 -05:00
#12719 Allow import of same well multiple times
Also exposes the well path collection object through the project object, and updates examples.
This commit is contained in:
1 parent
871973d02a
commit
377d300767
17 files changed
+204
-54
No files matched your search
+1
-1
@@ -23,7 +23,7 @@ intersection.points = [
|
||||
intersection.update()
|
||||
|
||||
# Add a new modeled well path
|
||||
well_path_coll = resinsight.project.descendants(rips.WellPathCollection)[0]
|
||||
well_path_coll = resinsight.project.well_path_collection()
|
||||
well_path = well_path_coll.add_new_object(rips.ModeledWellPath)
|
||||
well_path.name = "Test Well-1"
|
||||
well_path.update()
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ resinsight = rips.Instance.find()
|
||||
# The coordinates are based on the Norne case
|
||||
# Add a lateral to the main well path
|
||||
|
||||
well_path_coll = resinsight.project.descendants(rips.WellPathCollection)[0]
|
||||
well_path_coll = resinsight.project.well_path_collection()
|
||||
|
||||
editable_well_paths = well_path_coll.descendants(rips.ModeledWellPath)
|
||||
if editable_well_paths:
|
||||
|
||||
@@ -7,7 +7,7 @@ resinsight = rips.Instance.find()
|
||||
# Create a modeled well path and add well path targets
|
||||
# The coordinates are based on the Norne case
|
||||
|
||||
well_path_coll = resinsight.project.descendants(rips.WellPathCollection)[0]
|
||||
well_path_coll = resinsight.project.well_path_collection()
|
||||
well_path = well_path_coll.add_new_object(rips.ModeledWellPath)
|
||||
well_path.name = "Test Well-1"
|
||||
well_path.update()
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ resinsight = rips.Instance.find()
|
||||
# The coordinates are based on the Norne case
|
||||
# Add a lateral to the main well path
|
||||
|
||||
well_path_coll = resinsight.project.descendants(rips.WellPathCollection)[0]
|
||||
well_path_coll = resinsight.project.well_path_collection()
|
||||
well_path = well_path_coll.add_new_object(rips.ModeledWellPath)
|
||||
well_path.name = "Test Well-1"
|
||||
well_path.update()
|
||||
|
||||
@@ -6,7 +6,7 @@ import rips
|
||||
|
||||
|
||||
def test_add_new_object_for_well_paths(rips_instance, initialize_test):
|
||||
well_path_coll = rips_instance.project.descendants(rips.WellPathCollection)[0]
|
||||
well_path_coll = rips_instance.project.well_path_collection()
|
||||
|
||||
my_well_path = well_path_coll.add_new_object(rips.ModeledWellPath)
|
||||
my_well_path.name = "test"
|
||||
@@ -30,7 +30,7 @@ def test_add_new_object_for_well_paths(rips_instance, initialize_test):
|
||||
|
||||
|
||||
def test_add_well_path_targets(rips_instance, initialize_test):
|
||||
well_path_coll = rips_instance.project.descendants(rips.WellPathCollection)[0]
|
||||
well_path_coll = rips_instance.project.well_path_collection()
|
||||
|
||||
my_well_path = well_path_coll.add_new_object(rips.ModeledWellPath)
|
||||
my_well_path.name = "test"
|
||||
@@ -61,7 +61,7 @@ def test_add_well_path_targets(rips_instance, initialize_test):
|
||||
|
||||
|
||||
def test_duplicate_well_path(rips_instance, initialize_test):
|
||||
well_path_coll = rips_instance.project.descendants(rips.WellPathCollection)[0]
|
||||
well_path_coll = rips_instance.project.well_path_collection()
|
||||
|
||||
my_well_path = well_path_coll.add_new_object(rips.ModeledWellPath)
|
||||
my_well_path.name = "test"
|
||||
|
||||
@@ -6,7 +6,7 @@ import rips
|
||||
|
||||
|
||||
def test_well_path(rips_instance, initialize_test):
|
||||
well_path_coll = rips_instance.project.descendants(rips.WellPathCollection)[0]
|
||||
well_path_coll = rips_instance.project.well_path_collection()
|
||||
assert len(well_path_coll.well_paths()) == 0
|
||||
|
||||
well_path = well_path_coll.add_new_object(rips.ModeledWellPath)
|
||||
|
||||
@@ -26,7 +26,7 @@ def test_10k(rips_instance, initialize_test):
|
||||
|
||||
|
||||
def test_add_well_path_completions(rips_instance, initialize_test):
|
||||
well_path_coll = rips_instance.project.descendants(rips.WellPathCollection)[0]
|
||||
well_path_coll = rips_instance.project.well_path_collection()
|
||||
|
||||
well_path = well_path_coll.add_new_object(rips.ModeledWellPath)
|
||||
well_path.name = "test"
|
||||
@@ -144,7 +144,7 @@ def test_add_well_path_fracture_template(rips_instance, initialize_test):
|
||||
|
||||
# test fishbone interface
|
||||
def test_fishbone_interface(rips_instance, initialize_test):
|
||||
well_path_coll = rips_instance.project.descendants(rips.WellPathCollection)[0]
|
||||
well_path_coll = rips_instance.project.well_path_collection()
|
||||
|
||||
well_path = well_path_coll.add_new_object(rips.ModeledWellPath)
|
||||
well_path.name = "fishbone_well"
|
||||
@@ -194,7 +194,7 @@ def test_fishbone_interface(rips_instance, initialize_test):
|
||||
|
||||
# test perforations and perforations settings
|
||||
def test_perforation_settings(rips_instance, initialize_test):
|
||||
well_path_coll = rips_instance.project.descendants(rips.WellPathCollection)[0]
|
||||
well_path_coll = rips_instance.project.well_path_collection()
|
||||
|
||||
well_path = well_path_coll.add_new_object(rips.ModeledWellPath)
|
||||
well_path.name = "perforated_well"
|
||||
|
||||
Reference in new issue
Block a user