Example #1
0
 def test_min11(self):
     ds = DataSet(self.test_dir, force_create=True)
     nan = np.iinfo(np.int8).min
     ca = Table("t", ds, [("a", np.array([nan, nan], np.int8))], force_create=True).get_column("a")
     self.assertTrue(ca.isnan(ca.min(skipna=False)))
Example #2
0
 def test_min09(self):
     ds = DataSet(self.test_dir, force_create=True)
     nan = np.iinfo(np.int8).min
     ca = Table("t", ds, [("a", np.array([3, nan, 2], np.int8))], force_create=True).get_column("a")
     self.assertEqual(ca.min(skipna=True), 2)
Example #3
0
 def test_min08(self):
     ds = DataSet(self.test_dir, force_create=True)
     ca = Table("t", ds, [("a", np.array([np.nan, np.nan], np.float))], force_create=True).get_column("a")
     self.assertTrue(ca.isnan(ca.min(skipna=False)))
Example #4
0
 def test_min05(self):
     ds = DataSet(self.test_dir, force_create=True)
     ca = Table("t", ds, [("a", np.array([6, 4, np.nan, 4, 6, 9], np.float))], force_create=True).get_column("a")
     assert_close(ca.min(skipna=True), 4)
Example #5
0
 def test_min04(self):
     ds = DataSet(self.test_dir, force_create=True)
     ca = Table("t", ds, [("a", [np.array([6, 4, 7, 4, 6, 9], np.int)])], force_create=True).get_column("a")
     assert_close(ca.min(skipna=False), 4)
Example #6
0
 def test_min01(self):
     ds = DataSet(self.test_dir, force_create=True)
     ca = Table("t", ds, [("a", np.array([], np.int))], force_create=True).get_column("a")
     x = ca.min()
     self.assertTrue(ca.isnan(ca.min(skipna=True)))