summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Seibert <stan@mtrr.org>2011-08-16 20:29:20 -0400
committerStan Seibert <stan@mtrr.org>2011-08-16 20:29:20 -0400
commit2e258c088f582e820ca274346d224ea460b52661 (patch)
tree80669f8ba5bfa42a18a78e8da2762866ee10c509
parentcc478cf132d554642345ada31d3f801f004bf184 (diff)
downloadchroma-2e258c088f582e820ca274346d224ea460b52661.tar.gz
chroma-2e258c088f582e820ca274346d224ea460b52661.tar.bz2
chroma-2e258c088f582e820ca274346d224ea460b52661.zip
Remove some unused parts of generator/photon.py
-rw-r--r--generator/photon.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/generator/photon.py b/generator/photon.py
index dcfc292..dacc847 100644
--- a/generator/photon.py
+++ b/generator/photon.py
@@ -1,6 +1,5 @@
import g4gen
import multiprocessing
-import threading
import numpy as np
import itertools
@@ -22,16 +21,6 @@ class G4GeneratorProcess(multiprocessing.Process):
ev.photon_start = gen.generate_photons(ev)
self.output_queue.put(ev)
-class G4VertexGeneratorProcess(multiprocessing.Process):
- def __init__(self, vertex_iterator, queue):
- multiprocessing.Process.__init__(self)
- self.vertex_iterator = vertex_iterator
- self.queue = queue
-
- def run(self):
- for ev in self.vertex_iterator:
- self.queue.put(ev)
-
def partition(num, partitions):
'''Generator that returns num//partitions, with the last item including the remainder.