def test_addfield(self): "Tests addfield" [d, m, mrec] = self.data mrec = addfield(mrec, masked_array(d+10, mask=m[::-1])) assert_equal(mrec.f2, d+10) assert_equal(mrec.f2._mask, m[::-1])
def test_addfield(self): "Tests addfield" [d, m, mrec, dlist, dates, ts, mts] = self.data mts = addfield(mts, masked_array(d+10, mask=m[::-1])) assert_equal(mts.f2, d+10) assert_equal(mts.f2._mask, m[::-1])