Commit 355b3ade43c55622878de8b88bcfc46b25079f26
1 parent
46807653
hotfix
Showing
1 changed file
with
3 additions
and
1 deletions
semantics/clustering/clusterer.py
... | ... | @@ -22,16 +22,18 @@ def generate_xml(cluster_heart, xml_file): |
22 | 22 | keys, transformation = find_cluster(cluster_heart, session, TT_dict) |
23 | 23 | |
24 | 24 | frames = [] |
25 | + taken = [] | |
25 | 26 | for i in list(keys): |
26 | 27 | frame_id = int(i[0,0]) |
27 | 28 | frame = SemanticFrame.objects.get(id=frame_id) |
28 | 29 | transformation_id = i[0,1] |
29 | 30 | frames.append((frame, transformation_id)) |
31 | + taken.append(frame_id) | |
30 | 32 | |
31 | 33 | unified_frame, matching = join_frames(frames, transformation) |
32 | 34 | |
33 | 35 | create_xml(xml_file, unified_frame, matching) |
34 | - change_frames_statuses([], keys) | |
36 | + change_frames_statuses([], taken) | |
35 | 37 | |
36 | 38 | def generate_empty_xml(xml_file): |
37 | 39 | create_xml(xml_file, Frame(), {}) |
... | ... |