Merge pull request #7975 from OPM/7973-custom-export-filename

Export Completions : Custom export file name fails in some cases
This commit is contained in:
Magne Sjaastad
2021-09-09 10:16:37 +02:00
committed by GitHub
parent 8f5beb8851
commit acdcbe44b4
3 changed files with 43 additions and 4 deletions
@@ -0,0 +1,23 @@
############################################################################
# This script will export completions for a well path for all cases in the project
#
############################################################################
import os
import rips
# Load instance
resinsight = rips.Instance.find()
cases = resinsight.project.cases()
for case in cases:
print("Case name: ", case.name)
print("Case id: ", case.id)
case.export_well_path_completions(
time_step=0,
well_path_names=["Well-1"],
file_split="UNIFIED_FILE",
include_perforations=True,
custom_file_name="d:/scratch/well_path_export/myfile.myext",
)