summaryrefslogtreecommitdiff
path: root/test/test_rayleigh.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_rayleigh.py')
-rw-r--r--test/test_rayleigh.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_rayleigh.py b/test/test_rayleigh.py
index 91e45ca..b10cdd8 100644
--- a/test/test_rayleigh.py
+++ b/test/test_rayleigh.py
@@ -52,6 +52,6 @@ class TestRayleigh(unittest.TestCase):
# (1 + \cos^2 \theta)\sin \theta according to GEANT4 physics
# reference manual.
f = ROOT.TF1("pol_func", "[0]*(1+cos(x)**2)*sin(x)", 0, np.pi)
- h.Fit(f)
+ h.Fit(f, 'NQ')
self.assertGreater(f.GetProb(), 1e-3)