We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a6f47e commit 49dd51cCopy full SHA for 49dd51c
recon_surf/recon-surf.sh
@@ -464,7 +464,9 @@ cmd="$python $FASTSURFER_HOME/FastSurferCNN/data_loader/conform.py -i $t1 --chec
464
RunIt "$cmd" "$LF"
465
466
# look into the CONFORM_LF to find the voxel sizes, the second conform.py call will check the legality of vox_size
467
-vox_size=$(grep -oP '(?<= - Voxel Size )[0-9\.]+' "$CONFORM_LF")
+vox_size_prefix=" - Voxel Size"
468
+vox_size=$(grep -oE "${vox_size_prefix} [0-9.]+" "$CONFORM_LF")
469
+vox_size="${vox_size:${#vox_size_prefix}}"
470
# remove the temporary conform_log (all info is also in the recon-surf logfile)
471
if [ -f "$CONFORM_LF" ]; then rm -f "$CONFORM_LF" ; fi
472
0 commit comments