Commit 2ee4c9cb authored by teresa.bister's avatar teresa.bister Committed by Teresa Bister
Browse files

[test_simulations] change unittest for commit 4ea6263f

parent 8b01dc6c
......@@ -475,7 +475,8 @@ class TestSourceBound(unittest.TestCase):
sim2.set_charges('first_minimum')
sim2.set_sources(rmax=10.)
sim2.attenuate(inside_fraction=0.)
self.assertTrue(np.amin(sim2.crs['distances']) > 10)
# minimal simulated distance should only approximately be rmax: chooses closest simulated bin
self.assertTrue(np.amin(sim2.crs['distances']) > 9.5)
self.assertTrue(np.mean(sim2.crs['distances']) > np.mean(sim.crs['distances']))
# sim.plot_arrivals()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment