comparison python/cluster.py @ 11:e411408d64ec

from python repo
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Sat, 11 Dec 2021 16:13:04 -0500
parents 3ee329b129c6
children 1e42c0147a49
comparison
equal deleted inserted replaced
10:73bb35b96624 11:e411408d64ec
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(',')]