Skip to content

Commit

Permalink
updated aortic prediction in csv file
Browse files Browse the repository at this point in the history
  • Loading branch information
malteekj committed Jan 31, 2024
1 parent de462a8 commit d7388e5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions comp2comp/aortic_calcium/aortic_calcium_visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def __call__(self, inference_pipeline):
f.write(region + ',\n')

f.write("Total number,{}\n".format(metrics["num_calc"]))
f.write("Total volume (cm^3),{:.1f}\n".format(metrics["volume_total"]))
f.write("Total volume (cm^3),{:.3f}\n".format(metrics["volume_total"]))
f.write("Threshold (HU),{:.1f}\n".format(inference_pipeline.calcium_threshold))

f.write("{},{:.1f}+/-{:.1f}\n".format(
Expand All @@ -90,21 +90,21 @@ def __call__(self, inference_pipeline):
np.std(metrics["max_hu"]),
)
)
f.write("{},{:.1f}+/-{:.1f}\n".format(
f.write("{},{:.3f}+/-{:.3f}\n".format(
"Mean volume (cm³):",
np.mean(metrics["volume"]),
np.std(metrics["volume"]),
)
)
f.write("{},{:.1f}\n".format(
f.write("{},{:.3f}\n".format(
"Median volume (cm³)", np.median(metrics["volume"])
)
)
f.write("{},{:.1f}\n".format(
f.write("{},{:.3f}\n".format(
"Max volume (cm³)", np.max(metrics["volume"])
)
)
f.write("{},{:.1f}\n".format(
f.write("{},{:.3f}\n".format(
"Min volume (cm³):", np.min(metrics["volume"])
)
)
Expand Down

0 comments on commit d7388e5

Please sign in to comment.