コード例 #1
0
ファイル: test_COUNT.py プロジェクト: lauradomar/iris
 def test_ma(self):
     data = COUNT.aggregate(self.cube.data, axis=0, function=self.func)
     self.assertArrayEqual(data, [2])
コード例 #2
0
ファイル: test_COUNT.py プロジェクト: SciTools/iris
 def test_ma(self):
     data = COUNT.aggregate(self.cube.data, axis=0, function=self.func)
     self.assertArrayEqual(data, [2])
コード例 #3
0
ファイル: test_COUNT.py プロジェクト: lauradomar/iris
 def test_not_callable(self):
     with self.assertRaisesRegex(TypeError, 'function must be a callable'):
         COUNT.aggregate(self.cube.data, axis=0, function='wibble')
コード例 #4
0
ファイル: test_COUNT.py プロジェクト: SciTools/iris
 def test_not_callable(self):
     with self.assertRaisesRegexp(TypeError, 'function must be a callable'):
         COUNT.aggregate(self.cube.data, axis=0, function='wibble')