Python: more examples + a comparable Octave Example

This commit is contained in:
Gaute Lindkvist
2019-06-04 08:43:57 +02:00
parent 35059d1d67
commit 5379e95857
7 changed files with 113 additions and 1 deletions

View File

@@ -52,5 +52,5 @@ class Case:
return self.stub.GetCellInfoForActiveCells(request)
def timeSteps(self):
return self.stub.GetTimeSteps(self.request)
return self.stub.GetTimeSteps(self.request).dates

View File

@@ -111,6 +111,7 @@ class Properties:
print("Command not found")
else:
print("Other error", e)
def setGridProperty(self, values, propertyType, propertyName, timeStep, gridIndex = 0, porosityModel = 'MATRIX_MODEL'):
propertyTypeEnum = Properties_pb2.PropertyType.Value(propertyType)
porosityModelEnum = Case_pb2.PorosityModelType.Value(porosityModel)