fredboudon / lpy

An open source python version of the Lindenmayer Systems.
Other
14 stars 13 forks source link

Generating lpy code fails if default catergory name is set to another name #25

Open jvail opened 3 years ago

jvail commented 3 years ago

This ..

lp = LsystemParameters()
with io.open('my.json') as file:
    lp.load(file)
lp.set_defaut_category('my')
lp.generate_py_code()

fails with default_category not being a property of self.

https://github.com/fredboudon/lpy/blob/master/src/openalea/lpy/lsysparameters.py#L500-L508