mirror of
https://github.com/ParticulateFlow/LPP.git
synced 2025-12-08 06:37:46 +00:00
21 lines
433 B
Python
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"
|