Commit b258ef00 authored by Delvallez Delvallez's avatar Delvallez Delvallez

ajoustements et corrections

parent 5f30d6c1
......@@ -100,7 +100,7 @@ def perturbation_type(pert):
def stats(noeuds_perts, path):
s = "Nombre de noeuds relevés par perturbation"
for pert, values in noeuds_perts.items():
s+=f"\n{pert} : {values["total"]}"
s+=f"\n{pert} : {values['total']}"
for pert, values in noeuds_perts.items():
s+=f"\n{pert} : "
for i,j,mean,std,rmean,rstd in values["noeuds_sensibles"]:
......
......@@ -127,7 +127,7 @@ def construire_json(perturbations, full_replace, descr):
def sauvegarder(obj, path):
with open(path, "w", encoding="utf-8") as f:
with open(path, "w+", encoding="utf-8") as f:
json.dump(
obj,
......
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