properties API#

Management of the mtg plant and root properties in accordance to rsml format

openalea.rsml.properties.set_accession(g, root_order=None, default=['PO:0020127', 'PO:0020121'])[source]#

set missing accession property of root axes

openalea.rsml.properties.set_ids(g)[source]#

Set missing id property of all g vertices to the mtg id

openalea.rsml.properties.set_label(g, default=['Scene', 'Plant', 'Root'])[source]#

Set missing label of g vertices to the default one (w.r.t scale)

openalea.rsml.properties.set_parent_position(g)[source]#

compute root axe length and add it to g

openalea.rsml.properties.set_root_length(g)[source]#

compute root axe length and add it to g

openalea.rsml.properties.set_rsml_properties(g, prop=[])[source]#

Set missing id, label and accession and properties indicated by prop

prop: either ‘all’

or a list which can contain ‘length’ and ‘parent-position’

Download the source file ../../src/openalea/rsml/properties.py.