[SOLVED] Error visualising MTG

I am modelling macadamia using VLAB and generating a MTG to store the tree at various times.

When I try to view the tree using the code in display.py it throws an ArgumentError.

It seems to occur due the last line in this MTG.

import openalea.mtg as om
g = om.MTG(“ModelMTG_Test.mtg”)
pf = om.PlantFrame(g)
pf.plot(g,gc=False)

The MTG file is ModelMTG_Test.mtg

Hoping someone can solve this issue or suggest how I need to change the MTG. The MTG works well in all other aspects

Best Regards

Neil White

1 Like

Hi Neil :smiley:,
I may be wrong, but I was wondering if the problem came more from the first lines of the mtg than from the last segment? because if you modify it slightly: on the first node from ^<N1 to ^/N1,
I can see a branch in my Jupyter notebook. Is it the structure you were expected?

Cheers,

1 Like

Thanks Emma. Talking about not see the wood for the trees :smiley:

Now to work out why my MTG write code is incorrect.

2 Likes