From dbe35efc3b26b8df6b1db05974c2b976b1c171ba Mon Sep 17 00:00:00 2001 From: Stan Seibert Date: Wed, 13 Mar 2013 13:18:17 -0400 Subject: Fix test_daq to use newer DAQ API. --- test/test_pdf.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/test_pdf.py b/test/test_pdf.py index 1d9e20a..0ad87d8 100644 --- a/test/test_pdf.py +++ b/test/test_pdf.py @@ -38,8 +38,10 @@ class TestPDF(unittest.TestCase): gpu_photons = gpu.GPUPhotons(ev.photons_beg) gpu_photons.propagate(gpu_geometry, rng_states, nthreads_per_block, max_blocks) - gpu_channels = gpu_daq.acquire(gpu_photons, rng_states, - nthreads_per_block, max_blocks) + gpu_daq.begin_acquire() + gpu_daq.acquire(gpu_photons, rng_states, + nthreads_per_block, max_blocks) + gpu_channels = gpu_daq.end_acquire() gpu_pdf.add_hits_to_pdf(gpu_channels) hitcount, pdf = gpu_pdf.get_pdfs() -- cgit