def test_IsNaN4D_2(self): np_a = np.reshape(self.np_a, (2, 2, 1, 6)) dc_a = dc.reshape(self.dc_a, (2, 2, 1, 6)) npr = np.isnan(np_a) dcr = dc.isnan(dc_a) np.testing.assert_array_equal(npr.flatten(), np.array(dcr.data()))
def test_IsNaN1D(self): npr = np.isnan(self.np_a) dcr = dc.isnan(self.dc_a) np.testing.assert_array_equal(npr, np.array(dcr.data()))