mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#7929 Python : Avoid creation of new view when opening case
This commit is contained in:
@@ -17,6 +17,7 @@ path_name = os.path.join(
|
||||
test_models_path, "TEST10K_FLT_LGR_NNC/TEST10K_FLT_LGR_NNC.EGRID"
|
||||
)
|
||||
case = resinsight.project.load_case(path_name)
|
||||
case.create_view()
|
||||
|
||||
# Print out lots of information from the case object
|
||||
print("Case id: " + str(case.id))
|
||||
|
||||
@@ -101,7 +101,8 @@ def test_10k_PoroPermX(rips_instance, initialize_test):
|
||||
|
||||
def test_exportPropertyInView(rips_instance, initialize_test):
|
||||
case_path = dataroot.PATH + "/TEST10K_FLT_LGR_NNC/TEST10K_FLT_LGR_NNC.EGRID"
|
||||
rips_instance.project.load_case(case_path)
|
||||
case = rips_instance.project.load_case(case_path)
|
||||
case.create_view()
|
||||
with tempfile.TemporaryDirectory(prefix="rips") as tmpdirname:
|
||||
print("Temporary folder: ", tmpdirname)
|
||||
rips_instance.set_export_folder(export_type="PROPERTIES", path=tmpdirname)
|
||||
|
||||
@@ -10,6 +10,7 @@ import dataroot
|
||||
def test_10k(rips_instance, initialize_test):
|
||||
case_path = dataroot.PATH + "/TEST10K_FLT_LGR_NNC/TEST10K_FLT_LGR_NNC.EGRID"
|
||||
case = rips_instance.project.load_case(path=case_path)
|
||||
case.create_view()
|
||||
assert len(case.grids()) == 2
|
||||
cell_count_info = case.cell_count()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user