From: build Date: Fri, 16 Feb 2007 16:28:41 +0000 (+0000) Subject: down show sites outside of the map X-Git-Tag: foo~537 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=bcfeda30923f70c374017bb0551a77772baad9af;p=infrastructure.git down show sites outside of the map --- diff --git a/tunings-myplc/plc-map.py b/tunings-myplc/plc-map.py index 0ea737a..601b74a 100755 --- a/tunings-myplc/plc-map.py +++ b/tunings-myplc/plc-map.py @@ -44,6 +44,9 @@ 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) + continue + circle(image,px,py,sx,sy,cIn,cOut) image.save (live)