mirror of
https://github.com/ParticulateFlow/LPP.git
synced 2025-12-08 06:37:46 +00:00
add from __future__ import print statement -> print() function xrange -> range map() -> list(map()) range() -> list(range()) StandardError -> Exception
17 lines
408 B
Python
17 lines
408 B
Python
# 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")
|