#8034 Pass reader settings to eclipse loading methods.

This commit is contained in:
Kristian Bendiksen
2021-09-27 12:14:06 +02:00
parent 51808d5ba7
commit f407acd5fa
19 changed files with 158 additions and 49 deletions

View File

@@ -41,7 +41,8 @@ for realization in range(0, num_realizations):
for path in case_file_paths:
# Load a case
path_name = path.as_posix()
case = resinsight.project.load_case(path_name)
grid_only = True
case = resinsight.project.load_case(path_name, grid_only)
# Load some wells
well_paths = resinsight.project.import_well_paths(

View File

@@ -62,7 +62,7 @@ def close(self):
@add_method(Project)
def load_case(self, path):
def load_case(self, path, grid_only=False):
"""Load a new grid case from the given file path
Arguments:
@@ -71,7 +71,7 @@ def load_case(self, path):
:class:`rips.generated.generated_classes.Case`
"""
command_reply = self._execute_command(
loadCase=Commands_pb2.FilePathRequest(path=path)
loadCase=Commands_pb2.FilePathRequest(path=path, gridOnly=grid_only)
)
return self.case(command_reply.loadCaseResult.id)