Commit a4ccbcc0 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Fix until aggregations are supported in simulation

parent cb79c2b4
......@@ -645,10 +645,16 @@ class sdlHandler(QObject):
context = self.proc
def find_allowed_tc(context, statename):
inputs = context.mapping[statename.lower()]
for each in inputs:
for inp in each.inputlist:
yield inp
#print 'Looking for TC in state', statename
#print context.mapping.keys()
try:
inputs = context.mapping[statename.lower()]
for each in inputs:
for inp in each.inputlist:
yield inp
except KeyError as err:
# FIXME: State Aggregations are not in context.mapping
print('State {} not supported/found'.format(statename))
allowed_tc = list(find_allowed_tc(context, st_iter))
......
Supports Markdown
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