Esempio n. 1
0
 def test_addfield(self):
     "Tests addfield"
     (mrec, nrec, ddtype) = self.data
     (d, m) = ([100, 200, 300], [1, 0, 0])
     mrec = addfield(mrec, ma.array(d, mask=m))
     assert_equal(mrec.f3, d)
     assert_equal(mrec.f3._mask, m)
Esempio n. 2
0
 def test_addfield(self):
     # Tests addfield
     (mrec, nrec, ddtype) = self.data
     (d, m) = ([100, 200, 300], [1, 0, 0])
     mrec = addfield(mrec, ma.array(d, mask=m))
     assert_equal(mrec.f3, d)
     assert_equal(mrec.f3._mask, m)
 def test_addfield(self):
     "Tests addfield"
     [d, m, mrec, dlist, dates, mts, rts] = self.data
     rts = addfield(rts, ma.array(d + 10, mask=m[::-1]))
     assert_equal(rts.f2, d + 10)
     assert_equal(rts.f2._mask, m[::-1])
Esempio n. 4
0
 def test_addfield(self):
     "Tests addfield"
     [d, m, mrec, dlist, dates, mts, rts] = self.data
     rts = addfield(rts, ma.array(d + 10, mask=m[::-1]))
     assert_equal(rts.f2, d + 10)
     assert_equal(rts.f2._mask, m[::-1])