Menu

Error in tutorial 4 corrected

Just noticed that the example in tutorial 4 was producing trees with 2 children per ADF defining branch !
There should only be one child per ADF defining branch...
To correct that (I have put a corrected version of the package, now a file called pystep_1.01.zip.
In tutorial4 file I replaced:
treeRules = {'root':[[(2,2,'adf1'),(2,2,'adf2')],[]],
by
treeRules = {'root':[[(2,1,'adf1'),(2,1,'adf2')],[]],

(The second integer parameter in a node is the number of children of this node)

Posted by Mehdi Khoury 2009-03-31

Log in to post a comment.