mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4428 Implement more commands
This commit is contained in:
parent
fe2d352f84
commit
35059d1d67
@ -48,16 +48,33 @@ class Commands:
|
|||||||
# Export Commands
|
# Export Commands
|
||||||
##################
|
##################
|
||||||
|
|
||||||
|
def exportMultiCaseSnapshots(self, gridListFile):
|
||||||
|
return self.execute(exportMultiCaseSnapshot=Cmd.ExportMultiCaseRequest(gridListFile=gridListFile))
|
||||||
|
|
||||||
def exportSnapshots(self, type = 'ALL', prefix=''):
|
def exportSnapshots(self, type = 'ALL', prefix=''):
|
||||||
return self.execute(exportSnapshots=Cmd.ExportSnapshotsRequest(type=type,
|
return self.execute(exportSnapshots=Cmd.ExportSnapshotsRequest(type=type,
|
||||||
prefix=prefix))
|
prefix=prefix))
|
||||||
|
|
||||||
|
def exportProperty(self, caseId, timeStep, property, eclipseKeyword=property, undefinedValue=0.0, exportFile=property):
|
||||||
|
return self.execute(exportProperty=Cmd.ExportPropertyRequest(caseId=caseId,
|
||||||
|
timeStep=timeStep,
|
||||||
|
property=property,
|
||||||
|
eclipseKeyword=eclipseKeyword,
|
||||||
|
undefinedValue=undefinedValue,
|
||||||
|
exportFile=exportFile))
|
||||||
|
|
||||||
|
def exportPropertyInViews(self, caseId, viewNames, undefinedValue):
|
||||||
|
if isinstance(viewNames, str):
|
||||||
|
viewNames = [viewNames]
|
||||||
|
|
||||||
|
return self.execute(exportPropertyInViews=Cmd.ExportPropertyInViewsRequest(caseId=caseId,
|
||||||
|
viewNames=viewNames,
|
||||||
|
undefinedValue=undefinedValue))
|
||||||
|
|
||||||
def exportWellPaths(self, wellPaths=[], mdStepSize=5.0):
|
def exportWellPaths(self, wellPaths=[], mdStepSize=5.0):
|
||||||
if isinstance(wellPaths, str):
|
if isinstance(wellPaths, str):
|
||||||
wellPathArray = [str]
|
wellPaths = [wellpaths]
|
||||||
elif isinstance(wellPaths, list):
|
return self.execute(exportWellPaths=Cmd.ExportWellPathRequest(wellPathNames=wellPaths, mdStepSize=mdStepSize))
|
||||||
wellPathArray = wellPaths
|
|
||||||
return self.execute(exportWellPaths=Cmd.ExportWellPathRequest(wellPathNames=wellPathArray, mdStepSize=mdStepSize))
|
|
||||||
|
|
||||||
def exportVisibleCells(self, caseId, viewName, exportKeyword='FLUXNUM', visibleActiveCellsValue=1, hiddenActiveCellsValue=0, inactiveCellsValue=0):
|
def exportVisibleCells(self, caseId, viewName, exportKeyword='FLUXNUM', visibleActiveCellsValue=1, hiddenActiveCellsValue=0, inactiveCellsValue=0):
|
||||||
return self.execute(exportVisibleCells=Cmd.ExportVisibleCellsRequest(caseId=caseId,
|
return self.execute(exportVisibleCells=Cmd.ExportVisibleCellsRequest(caseId=caseId,
|
||||||
|
Loading…
Reference in New Issue
Block a user