Exemplo n.º 1
0
 def test_ask_below_minimum(self):
     for ps in [[0.0001], [0.000001]]:
         with self.subTest(ps=ps):
             pc, cs = percentile_contour_values_from_meshz(self.z,
                                                           percentiles=ps,
                                                           resolution=5)
             self.assertIn("min", pc)
Exemplo n.º 2
0
 def test_percentiles(self):
     for ps in [[1.0], [0.001], np.linspace(0.001, 1, 10), [0.95, 0.10]]:
         with self.subTest(ps=ps):
             pc, cs = percentile_contour_values_from_meshz(self.z,
                                                           percentiles=ps)
Exemplo n.º 3
0
 def test_resolution(self):
     for res in [10, 100, 1000, 10000]:
         with self.subTest(res=res):
             pc, cs = percentile_contour_values_from_meshz(self.z,
                                                           resolution=res)
Exemplo n.º 4
0
 def test_default(self):
     percentile_contour_values_from_meshz(self.z)