Skip to content

Commit

Permalink
Merge pull request Deep-MI#119 from Deep-MI/update-conformed_check
Browse files Browse the repository at this point in the history
Added check for adjusted conformed_name flag
  • Loading branch information
LeHenschel committed Mar 16, 2022
2 parents d28c4cb + a32587b commit 1598a45
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions run_fastsurfer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,14 @@ then
export PYTHONUNBUFFERED=0
fi

if [ "${seg: -3}" != "${conformed_name: -3}" ]
then
echo "ERROR: Specified segmentation output and conformed image output do not have same file type."
echo "You passed --seg ${seg} and --conformed_name ${conformed_name}."
echo "Make sure these have the same file-format and adjust the names passed to the flags accordingly!"
exit 1;
fi

if [ "$surf_only" == "1" ] && [ ! -f "$seg" ]
then
echo "ERROR: To run the surface pipeline only, whole brain segmentation must already exist."
Expand Down

0 comments on commit 1598a45

Please sign in to comment.