aboutsummaryrefslogtreecommitdiff
path: root/pixelmappers
diff options
context:
space:
mode:
Diffstat (limited to 'pixelmappers')
-rw-r--r--pixelmappers/GaussianMapper.py3
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