Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in tissue_priors.sh #29

Open
finnlennartsson opened this issue Nov 16, 2020 · 0 comments
Open

error in tissue_priors.sh #29

finnlennartsson opened this issue Nov 16, 2020 · 0 comments

Comments

@finnlennartsson
Copy link

finnlennartsson commented Nov 16, 2020

Just installed the the feature/MCRIB_integrated branch

When running mirtk neonatal-segmentation there seems to be a problem with the conditions in tissue_priors.sh as the $age were not properly passed on to the registration and the processing was terminated.

First, a first solution was to update the lines 59-60 from

    [ $age -lt $TEMPLATE_MAX_AGE ] || { age=$TEMPLATE_MAX_AGE; }
    [ $age -gt $TEMPLATE_MIN_AGE ] || { age=$TEMPLATE_MIN_AGE; }

to

    [ $age -lt $TEMPLATE_MAX_AGE ] || { $age=$TEMPLATE_MAX_AGE; }
    [ $age -gt $TEMPLATE_MIN_AGE ] || { $age=$TEMPLATE_MIN_AGE; }

and then it runs but still complains about something in this lines. Here is the relevant output

register-multi-atlas.sh sub-PK343_ses-MR1_run-001_T2w 40 10
running /home/finn/Software/DrawEM/build/MIRTK/Packages/DrawEM/scripts/tissue-priors.sh sub-PK343_ses-MR1_run-001_T2w 40 10
creating sub-PK343_ses-MR1_run-001_T2w tissue priors
/home/finn/Software/DrawEM/build/MIRTK/Packages/DrawEM/scripts/tissue-priors.sh: line 59: [: 40: unary operator expected
/home/finn/Software/DrawEM/build/MIRTK/Packages/DrawEM/scripts/tissue-priors.sh: line 59: 40=: command not found
/home/finn/Software/DrawEM/build/MIRTK/Packages/DrawEM/scripts/tissue-priors.sh: line 60: [: 40: unary operator expected
/home/finn/Software/DrawEM/build/MIRTK/Packages/DrawEM/scripts/tissue-priors.sh: line 60: 40=: command not found
mirtk register N4/sub-PK343_ses-MR1_run-001_T2w.nii.gz /home/finn/Software/DrawEM/build/MIRTK/Packages/DrawEM/atlases/non-rigid-v2/T2/template-40.nii.gz -dofout dofs/sub-PK343_ses-MR1_run-001_T2w-tissue-atlas-40-n.dof.gz -parin /home/finn/Software/DrawEM/build/MIRTK/Packages/DrawEM/parameters/ireg.cfg -threads 10 -v 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant