summaryrefslogtreecommitdiff
path: root/test/test_rayleigh.py
diff options
context:
space:
mode:
authorAnthony LaTorre <devnull@localhost>2013-11-08 22:03:49 -0600
committertlatorre <tlatorre@uchicago.edu>2021-05-09 08:42:39 -0700
commit8374553fcc23b127d0edd9d3f02239bc15d7d9d6 (patch)
tree63526ce7ca00eebb282d81f7c2a7831685efb717 /test/test_rayleigh.py
parent4d81f5272d94c6e3d7932d5e06146ec1fcc99450 (diff)
downloadchroma-8374553fcc23b127d0edd9d3f02239bc15d7d9d6.tar.gz
chroma-8374553fcc23b127d0edd9d3f02239bc15d7d9d6.tar.bz2
chroma-8374553fcc23b127d0edd9d3f02239bc15d7d9d6.zip
cleanup tests
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)