mirror of
https://github.com/ParticulateFlow/LPP.git
synced 2025-12-08 06:37:46 +00:00
Committer: ckloss <ckloss@fluid38.(none)>
On branch master Initial commit for lpp, version 2011-10-11
This commit is contained in:
16
examples/test_vec.py
Normal file
16
examples/test_vec.py
Normal file
@ -0,0 +1,16 @@
|
||||
# simple test of vec tool
|
||||
# requires files/vec.txt
|
||||
# creates tmp.vec and tmp.vec.two
|
||||
|
||||
v = vec("files/vec.txt")
|
||||
|
||||
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
|
||||
v.write("tmp.vec")
|
||||
v.write("tmp.vec.two","col1",3)
|
||||
|
||||
print "all done ... type CTRL-D to exit Pizza.py"
|
||||
Reference in New Issue
Block a user