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)
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)
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)
def test_default(self): percentile_contour_values_from_meshz(self.z)