Allow loading one model from another in sedml.
@@ -622,6 +622,8 @@ class SEDMLCodeFactory(object):
lines.append("{} = te.loadSBMLModel(__{}_sbml)".format(mid, mid))
elif isHttp():
lines.append("{} = te.loadSBMLModel('{}')".format(mid, source))
+ elif source[0] == "#":
+ lines.append("{} = te.loadSBMLModel({}.getCurrentSBML())".format(mid, source[1:]))
else:
lines.append("{} = te.loadSBMLModel(os.path.join(workingDir, '{}'))".format(mid, source))
# read CellML
