Skip to content
Snippets Groups Projects
Commit 2c5967c2 authored by Levecque Etienne's avatar Levecque Etienne
Browse files

fix: correct ignored block not being written to csv output

parent 5108a0b2
No related branches found
No related tags found
No related merge requests found
......@@ -124,11 +124,15 @@ def to_csv(path_to_csv, image):
writer = csv.writer(f)
for pos, block in image.block_collection.items():
if pipeline in block.status:
is_clipped = block.is_clipped[pipeline]
if is_clipped:
status = 3
sol = None
iteration_heuristic = 0
elif pipeline in block.status:
status = block.status[pipeline]
antecedent = block.antecedents[pipeline]
iteration_heuristic = block.iterations[pipeline]
is_clipped = block.is_clipped[pipeline]
iteration_gurobi = 0
if antecedent is not None:
sol = str(list(np.ravel(antecedent).astype(int)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment