Files
LPP/examples/test_log.py
danielque 539fd060c2 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
2023-08-10 13:25:36 +02:00

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")