Mercurial > hg > python
comparison 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 |
comparison
equal
deleted
inserted
replaced
26:5488b5d3ba10 | 34:668d788cac47 |
---|---|
38 (nr,ox,oy,oz)=intsMaybe(ff) | 38 (nr,ox,oy,oz)=intsMaybe(ff) |
39 home=(float(ox),float(oy),float(oz)) | 39 home=(float(ox),float(oy),float(oz)) |
40 et=ff[9] | 40 et=ff[9] |
41 l=infile.readline().rstrip() | 41 l=infile.readline().rstrip() |
42 print(l,file=outfile) | 42 print(l,file=outfile) |
43 (orad,ymin,ymax)=intsMaybe(PPAT.split(l)) | 43 l2=PPAT.split(l) |
44 if l2[-1]=='bounded': | |
45 orad=int(l2[1]) | |
46 ymin=ymax=-1 | |
47 else: | |
48 (orad,ymin,ymax)=intsMaybe(l2) | |
44 _=infile.readline() | 49 _=infile.readline() |
45 for l in infile: | 50 for l in infile: |
46 found=False | 51 found=False |
47 (_,td,qd)=l.rstrip().split('\t') | 52 (_,td,qd)=l.rstrip().split('\t') |
48 q=[float(i) for i in qd.split(',')] | 53 q=[float(i) for i in qd.split(',')] |