diff options
author | Anthony LaTorre <devnull@localhost> | 2012-12-21 11:48:23 -0500 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2021-05-09 08:42:39 -0700 |
commit | 7905eb7d6457b597e39f72badd7ae2fce7272378 (patch) | |
tree | e198951b732723fb6691858dac5e3ea87b1d491b | |
parent | 79e3643283034e1923c2a84fe0c4d0eb52b97570 (diff) | |
download | chroma-7905eb7d6457b597e39f72badd7ae2fce7272378.tar.gz chroma-7905eb7d6457b597e39f72badd7ae2fce7272378.tar.bz2 chroma-7905eb7d6457b597e39f72badd7ae2fce7272378.zip |
add __getitem__ to Photon class
-rw-r--r-- | chroma/event.py | 13 |
1 files changed, 0 insertions, 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 |