mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#8034 Pass reader settings to eclipse loading methods.
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user