Commit 15bf4435 authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

[cmd] Fix typos

parent 4a80dc28
......@@ -196,12 +196,6 @@ def build_graph(solution, steps, transitions):
# Get & make all needed edges ##############################################
LOGGER.debug("Build graph for the solution: %s", solution)
LOGGER.debug("Decompiled steps: %s", steps)
#
# print(transitions['_h_2755'])
# print(transitions['_h_4716'])
# print(transitions['_h_2206'])
# print(transitions['_h_3426'])
# exit()
frontier_places = solution.split(' ')
edges_with_cond = list() # Edges between ori <-> transition node <-> ext
......@@ -216,20 +210,22 @@ def build_graph(solution, steps, transitions):
transitions_ori_ext = \
(tuple((ori, ext)) for ori, ext, _ in it.chain(*all_transitions))
except KeyError:
print("/!\One event is not in the given model file... Please check it.")
LOGGER.error("/!\One event is not in the given model file... Please check it.")
raise
# All nodes are: nodes involved in transitions + frontier places
all_nodes = set(it.chain(*transitions_ori_ext)) | set(frontier_places)
# print("SOLUTION", solution)
# print("ALL NODES", all_nodes)
# Parse all conditions in transitions;
# add nodes in conditions and transition nodes
[filter_transitions(transitions[step_event])
for step_event in it.chain(*steps)]
# print("edges without cond", edges)
# print("edges with cond", edges_with_cond)
# print("transition nodes added", transition_nodes)
# raw_input("PAUSE")
# print("edges without cond", edges)
# print("edges with cond", edges_with_cond)
# print("transition nodes added", transition_nodes)
# Make Graph ###############################################################
G = nx.DiGraph()
......
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