mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
gRPC: fix python client script code
This commit is contained in:
@@ -103,7 +103,7 @@ class ProjectInfo:
|
||||
def allCases(self):
|
||||
cases = self.projectInfo.AllCases(Empty())
|
||||
if cases is not None:
|
||||
return allCases.case_info
|
||||
return cases.case_info
|
||||
else:
|
||||
return None
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ for i in range(0, activeCellCount):
|
||||
|
||||
|
||||
timeSteps = resInsight.gridInfo.timeSteps(caseId=0)
|
||||
for i in range(0, len(timeSteps)):
|
||||
for i in range(0, len(timeSteps.date)):
|
||||
print("Applying values to all time step " + str(i))
|
||||
resInsight.properties.setActiveCellResults(values, 0, 'DYNAMIC_NATIVE', 'SOIL', i)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user