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_log.py
Normal file
16
examples/test_log.py
Normal file
@ -0,0 +1,16 @@
|
||||
# simple test of log tool
|
||||
# requires files/log.obstacle
|
||||
# creates tmp.log and tmp.log.two
|
||||
|
||||
lg = log("files/log.obstacle")
|
||||
|
||||
print "# of vectors =",lg.nvec
|
||||
print "length of vectors =",lg.nlen
|
||||
print "names of vectors =",lg.names
|
||||
|
||||
time,temp,press = lg.get("Step","Temp","Press")
|
||||
print temp,press
|
||||
lg.write("tmp.log")
|
||||
lg.write("tmp.log.two","Step","E_pair")
|
||||
|
||||
print "all done ... type CTRL-D to exit Pizza.py"
|
||||
Reference in New Issue
Block a user