From 134de4472d3f2fa913944770595de9221dd27fdf Mon Sep 17 00:00:00 2001 From: Thomas B Thompson Date: Tue, 4 Jan 2011 00:04:05 -0500 Subject: worked on profiling, made a bunch of changes, huge speedup! --- pixelmappers/GaussianMapper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pixelmappers') 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 -- cgit v1.2.3