Skip to content
Snippets Groups Projects
Commit 7de63886 authored by baigner's avatar baigner
Browse files

VISTOMS bug fix: problem function roles will be added again after changing the function order

Former-commit-id: 9b3bb0c6d3fd8c1af919387c4d0c2f9dc97946f7
parent a1ac2bf2
No related branches found
No related tags found
No related merge requests found
Pipeline #192821 canceled
......@@ -708,6 +708,7 @@ def kadmosChangeNodePos():
function_order.insert(newPos, nodeName)
if isinstance(graph, FundamentalProblemGraph):
graph.graph['problem_formulation']['function_order'] = function_order
graph.add_function_problem_roles()
# Add the graph with the updated function order to VISTOMS
newVistomsData = graph.vistoms_add_json(function_order=function_order, graph_id=graphID, mpg=mpg)
......@@ -1091,6 +1092,7 @@ def kadmosGetPossibleFunctionOrder():
function_order = fpg.get_possible_function_order(method)
fpg.assert_or_add_nested_attribute(['problem_formulation', 'mdao_architecture'], 'undefined')
fpg.graph['problem_formulation']['function_order'] = function_order
fpg.add_function_problem_roles()
# Save the graph in temp/tmp.kdms
fpg.save(os.path.join(UPLOAD_FOLDER, TEMP_FILE + '_' + graphID + '.kdms'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment