Files
LPP/examples/test_clog.py
ckloss 80592c0da1 Committer: ckloss <ckloss@fluid38.(none)>
On branch master
 Initial commit for lpp, version 2011-10-11
2012-02-03 14:10:31 +01:00

17 lines
382 B
Python

# simple test of clog tool
# requires files/log.ccell
# creates tmp.clog and tmp.clog.two
c = log("files/log.ccell")
print "# of vectors =",c.nvec
print "length of vectors =",c.nlen
print "names of vectors =",c.names
time,a,b = c.get("Step","prey","predator")
print a,b
c.write("tmp.clog")
c.write("tmp.clog.two","Step","prey")
print "all done ... type CTRL-D to exit Pizza.py"