Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
Malte Jensen committed Mar 5, 2024
2 parents c5de562 + d7388e5 commit b5240ab
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

1 comment on commit b5240ab

@malteekj
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the floating point precision

Please sign in to comment.