Python: added tests and made Octave InputPropTest.m general

* removed non-general hard-coded grid sizes and added timing to Octave test
* added two Pythonbenchmarks (sync and async) for the same test
This commit is contained in:
Gaute Lindkvist
2019-06-04 10:34:31 +02:00
parent b6427d84c3
commit 930abbf02f
9 changed files with 34 additions and 71 deletions

View File

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

View File

@@ -74,7 +74,8 @@ class Properties:
time_step = timeStep,
grid_index = gridIndex,
porosity_model = porosityModelEnum)
return self.propertiesStub.GetGridProperty(request)
for chunk in self.propertiesStub.GetGridProperty(request):
yield chunk
def setActiveCellPropertyAsync(self, values_iterator, propertyType, propertyName, timeStep, gridIndex = 0, porosityModel = 'MATRIX_MODEL'):
propertyTypeEnum = Properties_pb2.PropertyType.Value(propertyType)