BenjiELCA commited on
Commit
1b7de55
·
1 Parent(s): 3236788

correct bug

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -152,8 +152,6 @@ def create_XML(full_pred, text_mapping, scale):
152
 
153
  #modify the boxes positions
154
  old_boxes = copy.deepcopy(full_pred)
155
- full_pred['boxes'] = rescale(scale, full_pred['boxes'])
156
- full_pred['boxes'] = modif_box_pos(full_pred, size_elements)
157
 
158
  # Create BPMN collaboration element
159
  collaboration = ET.SubElement(definitions, 'bpmn:collaboration', id='collaboration_1')
@@ -167,6 +165,9 @@ def create_XML(full_pred, text_mapping, scale):
167
  bpmndi = ET.SubElement(definitions, 'bpmndi:BPMNDiagram', id='BPMNDiagram_1')
168
  bpmnplane = ET.SubElement(bpmndi, 'bpmndi:BPMNPlane', id='BPMNPlane_1', bpmnElement='collaboration_1')
169
 
 
 
 
170
  # Add diagram elements for each pool
171
  for idx, (pool_index, keep_elements) in enumerate(full_pred['pool_dict'].items()):
172
  pool_id = f'participant_{idx+1}'
 
152
 
153
  #modify the boxes positions
154
  old_boxes = copy.deepcopy(full_pred)
 
 
155
 
156
  # Create BPMN collaboration element
157
  collaboration = ET.SubElement(definitions, 'bpmn:collaboration', id='collaboration_1')
 
165
  bpmndi = ET.SubElement(definitions, 'bpmndi:BPMNDiagram', id='BPMNDiagram_1')
166
  bpmnplane = ET.SubElement(bpmndi, 'bpmndi:BPMNPlane', id='BPMNPlane_1', bpmnElement='collaboration_1')
167
 
168
+ full_pred['boxes'] = rescale(scale, old_boxes['boxes'])
169
+ full_pred['boxes'] = modif_box_pos(full_pred, size_elements)
170
+
171
  # Add diagram elements for each pool
172
  for idx, (pool_index, keep_elements) in enumerate(full_pred['pool_dict'].items()):
173
  pool_id = f'participant_{idx+1}'