You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In your simple_plant.mtg example, you implicitly affect $ and Scene to the same symbol for scale 0. This is not accepted in openalea.mtg that fails at parsing this file. Even if changing explicitly to adding "SCENE" to the classes, it also fails with openalea.mtg because 0-scale is defined implicitly.
I don't know what should be defined as the norm or not here... and which parser should be changed accordingly.
Again, as for #116 , it would be good to have all mtg examples from both packages being parsed correctly in both plateforms.
Ha. I took this norm from AMAPStudio, so I guess the Python implementation should handle that because we have a lot of MTG files following this. Open for discussion though.
Hi guys,
There is a problem with that.
The node 0 is a way to connect all the not-connected components (to be able to represent a forest rather than just a tree).
I have never seen this before.
Anyway, it would be nice to design a "nice" MTG format. But let do it in another issue... ;)
OK : going deeper into defining a "standard" MTG format while also keeping the ability to read historical files is out of the scope of this issue.
@VEZY : did you see many AMAP files with this ? openalea.mtg integrates old AMAP-style AML features hence should be able to read old files. I hope you do not generate mtg with this.
Meanwhile, I'll deal with other examples that do not integrate this 0-scale.
I close the issue, but fell free to re-open if you want to modify your code in relation with this issue.
Activity
VEZY commentedon Nov 20, 2026
Ha. I took this norm from AMAPStudio, so I guess the Python implementation should handle that because we have a lot of MTG files following this. Open for discussion though.
pradal commentedon Nov 20, 2026
Hi guys,
There is a problem with that.
The node 0 is a way to connect all the not-connected components (to be able to represent a forest rather than just a tree).
I have never seen this before.
Anyway, it would be nice to design a "nice" MTG format. But let do it in another issue... ;)
thomasarsouze commentedon Nov 20, 2026
OK : going deeper into defining a "standard" MTG format while also keeping the ability to read historical files is out of the scope of this issue.
@VEZY : did you see many AMAP files with this ?
openalea.mtgintegrates old AMAP-style AML features hence should be able to read old files. I hope you do not generate mtg with this.Meanwhile, I'll deal with other examples that do not integrate this 0-scale.
I close the issue, but fell free to re-open if you want to modify your code in relation with this issue.