Files
LPP/examples/test_bdump.py
danielque 539fd060c2 python 3 compatibility for examples/*.py files
add from __future__ import
print statement -> print() function
xrange -> range
map() -> list(map())
range() -> list(range())
StandardError -> Exception
2023-08-10 13:25:36 +02:00

13 lines
343 B
Python

# simple test of dump tool
# requires files/dump.peptide.only and files/dump.bond
# uses gl and vcr tools to visualize peptide molecule with bonds
dm = dump("files/dump.peptide.only")
b = bdump("files/dump.bond")
b.map(1,"id",2,"type",3,"atom1",4,"atom2")
dm.extra(b)
g = gl(dm)
v = vcr(g)
print("all done ... type CTRL-D to exit Pizza.py")