コード例 #1
0
ファイル: test_DimCoord.py プロジェクト: zmaalick/iris
 def test_no_masked_bds_real(self):
     data = self.no_masked_bds_real
     self.assertTrue(ma.isMaskedArray(data))
     self.assertEqual(ma.count_masked(data), 0)
     coord = DimCoord(self.pts_real, bounds=data)
     self.assertFalse(coord.has_lazy_bounds())
     self.assertFalse(ma.isMaskedArray(coord.bounds))
     self.assertEqual(ma.count_masked(coord.bounds), 0)
コード例 #2
0
ファイル: test_DimCoord.py プロジェクト: zmaalick/iris
 def test_no_masked_bds_lazy(self):
     data = self.no_masked_bds_lazy
     computed = data.compute()
     self.assertTrue(ma.isMaskedArray(computed))
     self.assertEqual(ma.count_masked(computed), 0)
     coord = DimCoord(self.pts_real, bounds=data)
     # DimCoord always realises its bounds.
     self.assertFalse(coord.has_lazy_bounds())
     self.assertFalse(ma.isMaskedArray(coord.bounds))
コード例 #3
0
ファイル: test_DimCoord.py プロジェクト: zmaalick/iris
 def test_lazy_core(self):
     coord = DimCoord(self.pts_real, bounds=self.bds_lazy)
     result = coord.has_lazy_bounds()
     self.assertFalse(result)
コード例 #4
0
ファイル: test_DimCoord.py プロジェクト: cpelley/iris
 def test_lazy_core(self):
     coord = DimCoord(self.pts_real, bounds=self.bds_lazy)
     result = coord.has_lazy_bounds()
     self.assertFalse(result)