Skip to content

Commit

Permalink
switch from ERROR to WARNING
Browse files Browse the repository at this point in the history
  • Loading branch information
m-reuter committed Feb 16, 2023
1 parent 5ec754b commit e8be8fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion FastSurferCNN/quick_qc.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def check_volume(aparc_aseg_segfile, voxvol, thres=0.75):
inseg_voxvol = np.product(inseg_header.get_zooms())

if not check_volume(inseg_data, inseg_voxvol):
sys.exit('ERROR: Total segmentation volume is too small. Segmentation may be corrupted.')
print('WARNING: Total segmentation volume is very small. Segmentation may be corrupted! Please check.')
sys.exit(0)
else:
sys.exit(0)

0 comments on commit e8be8fb

Please sign in to comment.