From 7905eb7d6457b597e39f72badd7ae2fce7272378 Mon Sep 17 00:00:00 2001 From: Anthony LaTorre Date: Fri, 21 Dec 2012 11:48:23 -0500 Subject: add __getitem__ to Photon class --- chroma/event.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/chroma/event.py b/chroma/event.py index 6d1d93d..d767c9e 100644 --- a/chroma/event.py +++ b/chroma/event.py @@ -138,19 +138,6 @@ class Photons(object): choice = np.random.permutation(n)[:int(n*reduction_factor)] return self[choice] - # print len(choice) - # pos = self.pos[choice] - # dir = self.dir[choice] - # pol = self.pol[choice] - # wavelengths = self.wavelengths[choice] - # last_hit_triangles = self.last_hit_triangles[choice] - # t = self.t[choice] - # flags = self.flags[choice] - # weights = self.weights[choice] - - # return Photons(pos, dir, pol, wavelengths, t, - # last_hit_triangles, flags, weights) - class Channels(object): def __init__(self, hit, t, q, flags=None): '''Create a list of n channels. All channels in the detector must -- cgit