Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 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))
Ejemplo n.º 3
0
 def test_lazy_core(self):
     coord = DimCoord(self.pts_real, bounds=self.bds_lazy)
     result = coord.has_lazy_bounds()
     self.assertFalse(result)
Ejemplo n.º 4
0
 def test_lazy_core(self):
     coord = DimCoord(self.pts_real, bounds=self.bds_lazy)
     result = coord.has_lazy_bounds()
     self.assertFalse(result)