Mercurial > hg > python
diff cluster.py @ 34:668d788cac47
handle unbounded Y, landing below target elevation
author | Henry Thompson <ht@markup.co.uk> |
---|---|
date | Sat, 12 Jun 2021 17:25:13 +0100 |
parents | 1670a33e3e6d |
children |
line wrap: on
line diff
--- a/cluster.py Mon May 31 15:01:38 2021 +0100 +++ b/cluster.py Sat Jun 12 17:25:13 2021 +0100 @@ -40,7 +40,12 @@ et=ff[9] l=infile.readline().rstrip() print(l,file=outfile) - (orad,ymin,ymax)=intsMaybe(PPAT.split(l)) + l2=PPAT.split(l) + if l2[-1]=='bounded': + orad=int(l2[1]) + ymin=ymax=-1 + else: + (orad,ymin,ymax)=intsMaybe(l2) _=infile.readline() for l in infile: found=False