fumitoh / modelx

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

Refs not inherited in child space #40

Closed alexeybaran closed 3 years ago

alexeybaran commented 3 years ago
import modelx as mx
m, s_p = mx.new_model(), mx.new_space()
s_p.a = 1
s_c = s_p.new_space()
print(s_c.a)
fumitoh commented 3 years ago

This is how it is. Refs are not inherited by its child spaces. They are inherited by its sub spaces.

fumitoh commented 3 years ago

Refs defined in models are available in any space

alexeybaran commented 3 years ago

Ok - not a big deal