From 6f0703602270d03f4025221f13fee21aa842a863 Mon Sep 17 00:00:00 2001 From: Anthony LaTorre Date: Mon, 12 Sep 2011 16:41:17 -0400 Subject: add chroma-sim script. get rid of GPU class; contexts should now be created with create_cuda_context(). --- tests/test_rayleigh.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/test_rayleigh.py') diff --git a/tests/test_rayleigh.py b/tests/test_rayleigh.py index 7e5fc92..02ccb41 100644 --- a/tests/test_rayleigh.py +++ b/tests/test_rayleigh.py @@ -16,8 +16,9 @@ class TestRayleigh(unittest.TestCase): self.cube = Geometry(water_wcsim) self.cube.add_solid(Solid(box(100,100,100), water_wcsim, water_wcsim)) self.cube.pmtids = [0] - self.sim = Simulation(self.cube, bvh_bits=4, geant4_processes=0, - use_cache=False) + self.cube.build(use_cache=False) + self.sim = Simulation(self.cube, geant4_processes=0) + nphotons = 100000 pos = np.tile([0,0,0], (nphotons,1)).astype(np.float32) dir = np.tile([0,0,1], (nphotons,1)).astype(np.float32) -- cgit