openalea / WALTer

WALTer is a 3D FSPM Wheat model
Other
4 stars 8 forks source link

Fix testing lpy cut bug #29

Closed christian34 closed 6 years ago

christian34 commented 6 years ago

Add some tests to fix #27

pradal commented 6 years ago

I have again an error. If I print the lstring and the new_lstring, I have:

('lstring :', AxialTree([%CutPointInternode[Leaf]TillerApex]Internode[Leaf][CutPointBud]Internode[Leaf]Apex))

and

('new_lstring :', AxialTree([]Internode[Leaf][CutPointBud]Internode[Leaf]Apex))
christian34 commented 6 years ago

This seems okay and consistent with lpy cut bug being there on your lpy version. The thing is that apparently your lscene id are not indices that allow to query lstring. What are the sid in lscene ? Can you subset lstring with lstring[index], 0 =< index < len(lstring) ?