diff options
author | Thomas B Thompson <tbent@spice.(none)> | 2011-01-04 00:04:05 -0500 |
---|---|---|
committer | Thomas B Thompson <tbent@spice.(none)> | 2011-01-04 00:04:05 -0500 |
commit | 134de4472d3f2fa913944770595de9221dd27fdf (patch) | |
tree | cf83e29a1ef4931a15f9b30125fedbd8fba8caf9 /pixelmappers | |
parent | f9aeaf10e3c9077504a78374640e79415734546b (diff) |
worked on profiling, made a bunch of changes, huge speedup!
Diffstat (limited to 'pixelmappers')
-rw-r--r-- | pixelmappers/GaussianMapper.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pixelmappers/GaussianMapper.py b/pixelmappers/GaussianMapper.py index 8755acf..8fdf16b 100644 --- a/pixelmappers/GaussianMapper.py +++ b/pixelmappers/GaussianMapper.py @@ -9,5 +9,6 @@ class GaussianMapper(PixelMapper): pixelDist = Geo.dist(pixel.location, eventLocation) if pixelDist < self['CutoffDist']: w = Geo.gaussian(pixelDist, self['Height'], 0, self['Width']) - returnPixels.append((pixel, w)) + if w > self['MinWeight']: + returnPixels.append((pixel, w)) return returnPixels |