From d7388e51df924576412b72ed1e287aaf8694ed4a Mon Sep 17 00:00:00 2001 From: Malte Date: Wed, 31 Jan 2024 20:18:40 +0100 Subject: [PATCH] updated aortic prediction in csv file --- .../aortic_calcium/aortic_calcium_visualization.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/comp2comp/aortic_calcium/aortic_calcium_visualization.py b/comp2comp/aortic_calcium/aortic_calcium_visualization.py index 7d89be6..1ed8d52 100644 --- a/comp2comp/aortic_calcium/aortic_calcium_visualization.py +++ b/comp2comp/aortic_calcium/aortic_calcium_visualization.py @@ -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( @@ -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"]) ) )