summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsim.py14
1 files 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