fumitoh / modelx

Use Python like a spreadsheet!
https://modelx.io
GNU Lesser General Public License v3.0
89 stars 20 forks source link

In exported models, cannot access the parent of an UserSpace by `_space.parent` #130

Open fumitoh opened 5 days ago

fumitoh commented 5 days ago

(From Discussion #129) In the formula of Cells in a modelx model, _space.parent refers to the parent of the containing UserSpace, but this does not work in the exported model of the modelx model. Instead, _space._parent works in the exported model.

Make _space._parent work also in modelx models, so that _space._parent can be used both in modelx and exported models.