Commit 1c5602f6 authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

Efficient comprehension list

parent 758a4444
......@@ -323,10 +323,10 @@ class MCLAnalyser(object):
@precondition: fsolution is a frontier solution for the query
"""
final_dsol = []
for var in fsolution.frontier_values:
if var < 0:
final_dsol.append([var]) # collect inactivated places
# collect inactivated places
final_dsol = \
[[var] for var in fsolution.frontier_values if var < 0]
if query.dim_start:
query.set_dim_start(final_dsol + query.dim_start)
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