Replies: 1 comment 4 replies
-
This is not documented, but you can actually copy a space to another model, by import modelx as mx
# Create Model1:
#
# Model1---A---foo
m1 = mx.new_model()
m1.new_space('A')
@mx.defcells
def foo():
return 1
# Create Model2:
#
# Model2---B---bar
m2 = mx.new_model()
m2.new_space('B')
@mx.defcells
def bar():
return 2
# Copy A to Model2:
#
# Model2---B---bar
# +-A---foo
m1.A.copy(m2) |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In case of broader adoption of
modelx
use by the organization, naturally different individuals/teams start to own different models (modelling logic, data sets, ...). Examples are:In this situation ideal process would be
modelx
model object including all the data, parameters and formulas.To facilitate it, it seems relatively straightforward extension of the
modelx
framework to allow import ofmodel
asspace
.Beta Was this translation helpful? Give feedback.
All reactions