Commit dca88d66 authored by Maverick Chardet's avatar Maverick Chardet
Browse files

Added check to make sure there are no data ports.

parent 66308f4b
......@@ -56,6 +56,8 @@ class _MadeusConcertoComponent(Component):
group_id = 0
for dep_name, dep_details in self.mc.dependencies.items():
dep_type, bindings = dep_details
if dep_type == DepType.DATA_PROVIDE or dep_type == DepType.DATA_USE:
raise Exception("Port %s has type DATA_USE or DATA_PROVIDE which does not make sense!")
if dep_type == DepType.USE:
self.dependencies[dep_name] = (DepType.USE, bindings)
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment