From bcfeda30923f70c374017bb0551a77772baad9af Mon Sep 17 00:00:00 2001 From: build Date: Fri, 16 Feb 2007 16:28:41 +0000 Subject: [PATCH] down show sites outside of the map --- tunings-myplc/plc-map.py | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.47.0