Skip to content
Snippets Groups Projects
Commit e0a770a2 authored by Charlotte TIBI's avatar Charlotte TIBI
Browse files

Données ajoutées

parent 50863c7a
No related branches found
No related tags found
No related merge requests found
......@@ -105,6 +105,12 @@ def procedure(args):
all_results[f"{iteration:02d}"]["Final_nb_of_labels"] = int(labels_number)
all_results[f"{iteration:02d}"]["Final_nb_of_zones"] = len(zones)
all_results[f"{iteration:02d}"]["Path_to_map"] =f"{final_maps_folder}/{name}.png"
if iteration%10==0 :
all_results_intermediaire = pd.DataFrame.from_dict(all_results, orient="index")
all_results_intermediaire = all_results[sorted(all_results_intermediaire.columns)]
all_results_intermediaire.index.name = "Map"
all_results_intermediaire.to_csv(f"{args.output_folder}/all_results.csv", index=True, header=True)
if args.criterium == "CRIT_Z":
spatial.show_map(zones, args.gradient, f"{iteration:02d}_final_zone_id",
optimisation, iteration_folder, points_map, show_zone_id=True,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment