Skip to content
Snippets Groups Projects
Commit 598b38a5 authored by maaikedieuwertje's avatar maaikedieuwertje
Browse files

commit before branch change

Former-commit-id: 8ff141874bed46c82c9b2e6c21af670d23377470
parent 5d253369
No related branches found
No related tags found
No related merge requests found
Showing
with 6 additions and 2 deletions
# Imports
import logging
import matplotlib
from collections import OrderedDict
import networkx as nx
from kadmos.graph import RepositoryConnectivityGraph, FundamentalProblemGraph, load
from kadmos.graph import RepositoryConnectivityGraph, FundamentalProblemGraph, KadmosGraph, load
from kadmos.utilities.general import get_mdao_setup
......@@ -131,10 +132,13 @@ rcg.node['F2']['performance_info'] = {'precision': 20,
function_order = ['A', 'D1', 'D2', 'D3', 'F1', 'F2', 'G1', 'G2']
# Create a DSM visualization of the RCG
rcg.create_dsm(file_name='RCG', function_order=function_order, include_system_vars=True, destination_folder=pdf_dir, keep_tex_file=True)
rcg.create_dsm(file_name='RCG', function_order=function_order, include_system_vars=True, destination_folder=pdf_dir, keep_tex_file=True, compile_pdf=False)
# Create a VISTOMS visualization of the RCG
rcg.vistoms_create(vistoms_dir, function_order=function_order, compress=False)
KadmosGraph(rcg).plot_graph()
matplotlib.pyplot.show()
# Save the RCG as kdms
rcg.save('RCG', destination_folder=kdms_dir)
# Save the RCG as cmdows (and do an integrity check)
......
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
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