Skip to content
Snippets Groups Projects
Commit 3361040d authored by maaikedieuwertje's avatar maaikedieuwertje
Browse files

Issue #130: Based on the functions in the CMDOWS.py file, new functions should...

Issue #130: Based on the functions in the CMDOWS.py file, new functions should be created to store the same information directly on a graph. (add_dc_general_info() and add_dc_performance_info())


Former-commit-id: 0d99d219b41ef4c26cc33c9ba6e2a76af1afed8e
parent 054735f9
No related branches found
No related tags found
No related merge requests found
Showing
with 3 additions and 6 deletions
......@@ -116,16 +116,13 @@ organigram = {}
rcg.add_contact(contacts,'Imco van Gent','i.vangent@tudelft.nl','ivangent',company='TU Delft', roles=['architect','integrator'])
rcg.add_contact(contacts,'Lukas Muller','l.muller@student.tudelft.nl','lmuller',company='TU Delft', roles='architect')
rcg.add_organization(organigram, contacts)
rcg.graph['organization'] = OrderedDict([('contacts', contacts),
('organigram', organigram)])
# Add some (optional) ranges
rcg.adj['/data_schema/geometry/z1']['D1']['valid_ranges'] = {'limit_range': {'minimum': -5, 'maximum': 5.},
'list_range': [('list_range_item', 7.5), ('list_range_item', 8)]}
# Add some (optional) metadata
rcg.node['F2']['general_info'] = {'description': 'dummy function that is not part of the original Sellar problem'}
rcg.node['F2']['performance_info'] = {'precision': 20,
'fidelity_level': 2,
'run_time': 1.5}
rcg.add_dc_general_info('F2','dummy function that is not part of the original Sellar problem')
rcg.add_dc_performance_info('F2',precision=20,fidelity_level=2,run_time=1.5)
function_order = ['A', 'D1', 'D2', 'D3', 'F1', 'F2', 'G1', 'G2']
......
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