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:
@ -4,13 +4,13 @@
|
||||
|
||||
v = vec("files/vec.txt")
|
||||
|
||||
print "# of vectors =",v.nvec
|
||||
print "length of vectors =",v.nlen
|
||||
print "names of vectors =",v.names
|
||||
print("# of vectors =",v.nvec)
|
||||
print("length of vectors =",v.nlen)
|
||||
print("names of vectors =",v.names)
|
||||
|
||||
time,temp,press = v.get(1,"col2",6)
|
||||
print temp,press
|
||||
print(temp,press)
|
||||
v.write("tmp.vec")
|
||||
v.write("tmp.vec.two","col1",3)
|
||||
|
||||
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