diff options
| author | Anthony LaTorre <tlatorre9@gmail.com> | 2011-09-12 16:41:17 -0400 | 
|---|---|---|
| committer | Anthony LaTorre <tlatorre9@gmail.com> | 2011-09-12 16:41:17 -0400 | 
| commit | 6f0703602270d03f4025221f13fee21aa842a863 (patch) | |
| tree | 2d227fbc236e647e3d6c96113f1d6b93a4113793 /tests/test_rayleigh.py | |
| parent | 4b5d9c633bd01ce8b2819d92eaf3e01d881fb996 (diff) | |
| download | chroma-6f0703602270d03f4025221f13fee21aa842a863.tar.gz chroma-6f0703602270d03f4025221f13fee21aa842a863.tar.bz2 chroma-6f0703602270d03f4025221f13fee21aa842a863.zip | |
add chroma-sim script. get rid of GPU class; contexts should now be created with create_cuda_context().
Diffstat (limited to 'tests/test_rayleigh.py')
| -rw-r--r-- | tests/test_rayleigh.py | 5 | 
1 files changed, 3 insertions, 2 deletions
| 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) | 
