Files
LPP/examples/test_chain.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

18 lines
273 B
Python

# simple test of chain tool
# creates tmp.data.chain file
c = chain(500,0.7,1,1,2)
c.seed = 54321
c.build(25,10)
c.mtype = 2
c.btype = 2
c.blen = 1.5
c.dmin = 1.2
c.id = "end1"
c.build(10,25)
c.write("tmp.data.chain")
print("all done ... type CTRL-D to exit Pizza.py")