Files
LPP/examples/test_pdbfile.py
ckloss 80592c0da1 Committer: ckloss <ckloss@fluid38.(none)>
On branch master
 Initial commit for lpp, version 2011-10-11
2012-02-03 14:10:31 +01:00

21 lines
433 B
Python

# simple test of pdbfile tool
# requires files/dump.peptide.* and files/peptide.pdb
# creates tmp*.pdb
d = dump("files/dump.peptide.*")
p = pdbfile("files/peptide",d)
p.one()
p.many()
p.single(0,"tmp.single")
n = flag = 0
while 1:
index,time,flag = p.iterator(flag)
if flag == -1: break
p.single(time,"tmp.single")
n += 1
print "Incrementally processed %d PDB files" % n
print "all done ... type CTRL-D to exit Pizza.py"