diff options
author | Anthony LaTorre <tlatorre9@gmail.com> | 2011-09-09 09:54:51 -0400 |
---|---|---|
committer | Anthony LaTorre <tlatorre9@gmail.com> | 2011-09-09 09:54:51 -0400 |
commit | eb964fe9fcf13ad1a72e40451c5d85b6765d945f (patch) | |
tree | f175e535c24922aa7aa9c1ab9360ee71b72b1aad /sim.py | |
parent | 8f39536a7a5a15afeba52b1492f1d84fed95054f (diff) | |
parent | 3defeae5de899b315928f1b518fe2ff75662d430 (diff) | |
download | chroma-eb964fe9fcf13ad1a72e40451c5d85b6765d945f.tar.gz chroma-eb964fe9fcf13ad1a72e40451c5d85b6765d945f.tar.bz2 chroma-eb964fe9fcf13ad1a72e40451c5d85b6765d945f.zip |
merge
Diffstat (limited to 'sim.py')
-rwxr-xr-x | sim.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |