From: build Date: Fri, 16 Feb 2007 16:37:33 +0000 (+0000) Subject: this one should work X-Git-Tag: foo~533 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=7bcbd9d4532b7745e0c56850459feecccdaf03dd;p=infrastructure.git this one should work --- diff --git a/scripts/plc-map.py b/scripts/plc-map.py index e4586b0..6ce7492 100755 --- a/scripts/plc-map.py +++ b/scripts/plc-map.py @@ -44,7 +44,7 @@ def main (): if site['longitude'] is not None and site['latitude'] is not None: px=float(longitude['left']-site['longitude'])/float(longitude['left']-longitude['right']) py=float(latitude['top']-site['latitude'])/float(latitude['top']-latitude['bottom']) - if (px==0 or py==0 or px==1 or py==1): + if (px<0 or py<0 or px>1 or py>1): continue circle(image,px,py,sx,sy,cIn,cOut)