mirror of
https://github.com/ParticulateFlow/LPP.git
synced 2025-12-08 06:37:46 +00:00
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
This commit is contained in:
@ -8,14 +8,14 @@ p = pdbfile("files/peptide",d)
|
||||
r = rasmol(p)
|
||||
r.file = "tmp"
|
||||
|
||||
print "kill image window when ready to contine ..."
|
||||
print("kill image window when ready to contine ...")
|
||||
r.show(0)
|
||||
r.all()
|
||||
|
||||
# change RasMol settings, run all() with those settings
|
||||
|
||||
print "change RasMol settings as desired, then type 'quit' ..."
|
||||
print("change RasMol settings as desired, then type 'quit' ...")
|
||||
r.run(0)
|
||||
r.all("tmp.rasmol")
|
||||
|
||||
print "all done ... type CTRL-D to exit Pizza.py"
|
||||
print("all done ... type CTRL-D to exit Pizza.py")
|
||||
|
||||
Reference in New Issue
Block a user