Skip to content

Commit

Permalink
round pi_times to 2 decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
wasserth committed Apr 9, 2024
1 parent 0cb65bd commit 3275f79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion totalsegmentator/bin/totalseg_get_phase.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def get_ct_contrast_phase(ct_img: nib.Nifti1Image):
phase, probability = pi_time_to_phase(pi_time)

return {"pi_time": pi_time, "phase": phase, "probability": probability,
"pi_time_min": float(preds.min()), "pi_time_max": float(preds.max())}
"pi_time_min": round(float(preds.min()), 2), "pi_time_max": round(float(preds.max()), 2)}


def main():
Expand Down

0 comments on commit 3275f79

Please sign in to comment.