summaryrefslogtreecommitdiff
path: root/sim.py
diff options
context:
space:
mode:
authorAnthony LaTorre <tlatorre9@gmail.com>2011-09-09 09:54:51 -0400
committerAnthony LaTorre <tlatorre9@gmail.com>2011-09-09 09:54:51 -0400
commiteb964fe9fcf13ad1a72e40451c5d85b6765d945f (patch)
treef175e535c24922aa7aa9c1ab9360ee71b72b1aad /sim.py
parent8f39536a7a5a15afeba52b1492f1d84fed95054f (diff)
parent3defeae5de899b315928f1b518fe2ff75662d430 (diff)
downloadchroma-eb964fe9fcf13ad1a72e40451c5d85b6765d945f.tar.gz
chroma-eb964fe9fcf13ad1a72e40451c5d85b6765d945f.tar.bz2
chroma-eb964fe9fcf13ad1a72e40451c5d85b6765d945f.zip
merge
Diffstat (limited to 'sim.py')
-rwxr-xr-xsim.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sim.py b/sim.py
index 53f7f9a..7ba6472 100755
--- a/sim.py
+++ b/sim.py
@@ -107,7 +107,7 @@ class Simulation(object):
self.gpu_pdf.clear_pdf()
if nreps > 1:
- iterable = repeating_iterator(iterable)
+ iterable = repeating_iterator(iterable, nreps)
for ev in iterable:
gpu_photons = gpu.GPUPhotons(ev.photons_beg)
@@ -138,7 +138,7 @@ class Simulation(object):
iterable = self.photon_generator.generate_events(iterable)
if nreps > 1:
- iterable = repeating_iterator(iterable)
+ iterable = repeating_iterator(iterable, nreps)
for ev in iterable:
gpu_photons = gpu.GPUPhotons(ev.photons_beg)