From f407488241846ec4c566131a0954689f75b8d1cf Mon Sep 17 00:00:00 2001 From: Stan Seibert Date: Mon, 8 Aug 2011 15:50:15 -0400 Subject: Oops. The generator is a process, not a thread. --- sim.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sim.py b/sim.py index 9e5f9bd..13e53c6 100755 --- a/sim.py +++ b/sim.py @@ -28,7 +28,7 @@ def info(type, value, tb): sys.excepthook = info -class GeneratorThread(multiprocessing.Process): +class GeneratorProcess(multiprocessing.Process): def __init__(self, particle, energy, position, direction, nevents, material): multiprocessing.Process.__init__(self) @@ -114,12 +114,12 @@ def main(): print >>sys.stderr, 'Creating generator...' detector_material = optics.water - generator_thread = GeneratorThread(particle=options.particle, - energy=options.energy, - position=position, - direction=direction, - nevents=options.nevents, - material=detector_material) + generator_thread = GeneratorProcess(particle=options.particle, + energy=options.energy, + position=position, + direction=direction, + nevents=options.nevents, + material=detector_material) print >>sys.stderr, 'WARNING: ASSUMING DETECTOR IS WATER!!' # Do this now so we can get ahead of the photon propagation -- cgit