summaryrefslogtreecommitdiff
path: root/test/test_pdf.py
diff options
context:
space:
mode:
authorAndy Mastbaum <mastbaum@hep.upenn.edu>2012-05-01 11:46:30 -0400
committertlatorre <tlatorre@uchicago.edu>2021-05-09 08:42:39 -0700
commit8a4a94466930205826c638a69a3501b6aecd5006 (patch)
tree61196154e6b40e3cbebc9b7ac7fa7b75ec6f2d05 /test/test_pdf.py
parentb22129a30493e415a6d239cc64f1695eb1a8be93 (diff)
downloadchroma-8a4a94466930205826c638a69a3501b6aecd5006.tar.gz
chroma-8a4a94466930205826c638a69a3501b6aecd5006.tar.bz2
chroma-8a4a94466930205826c638a69a3501b6aecd5006.zip
more unit test fixes
update remaining unit tests to build BVHs with ``loader.create_geometry_from_obj`` instead of the (removed) ``build`` method.
Diffstat (limited to 'test/test_pdf.py')
-rw-r--r--test/test_pdf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_pdf.py b/test/test_pdf.py
index df13a2a..1d9e20a 100644
--- a/test/test_pdf.py
+++ b/test/test_pdf.py
@@ -3,6 +3,7 @@ import numpy as np
import itertools
import chroma.demo
+from chroma.loader import create_geometry_from_obj
from chroma.generator.photon import G4ParallelGenerator
from chroma.generator.vertex import constant_particle_gun
from chroma.demo.optics import water
@@ -11,8 +12,7 @@ from chroma.sim import Simulation
class TestPDF(unittest.TestCase):
def setUp(self):
- self.detector = chroma.demo.tiny()
- self.detector.build()
+ self.detector = create_geometry_from_obj(chroma.demo.tiny(), update_bvh_cache=False)
self.vertex_gen = constant_particle_gun('e-', (0,0,0), (1,0,0), 10)
def testGPUPDF(self):