-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
90 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
""" | ||
ResInsight 3d contour map module | ||
""" | ||
|
||
import Commands_pb2 | ||
|
||
from .pdmobject import add_method | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
""" | ||
ResInsight 2d plot module | ||
""" | ||
|
||
import Commands_pb2 | ||
|
||
from .pdmobject import add_method | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
""" | ||
ResInsight SimulationWell | ||
""" | ||
|
||
import grpc | ||
|
||
import SimulationWell_pb2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import sys | ||
import os | ||
|
||
sys.path.insert(1, os.path.join(sys.path[0], "../../")) | ||
import rips | ||
|
||
|
||
def test_well_path(rips_instance, initialize_test): | ||
well_path_coll = rips_instance.project.descendants(rips.WellPathCollection)[0] | ||
assert len(well_path_coll.well_paths()) is 0 | ||
|
||
well_path = well_path_coll.add_new_object(rips.ModeledWellPath) | ||
well_path2 = well_path_coll.add_new_object(rips.ModeledWellPath) | ||
assert len(well_path_coll.well_paths()) is 2 | ||
|
||
well_path.delete() | ||
assert len(well_path_coll.well_paths()) is 1 | ||
|
||
try: | ||
# Delete again should throw exception | ||
well_path.delete() | ||
assert False | ||
except Exception: | ||
assert True | ||
|
||
well_path2.delete() | ||
assert len(well_path_coll.well_paths()) is 0 |