-
Notifications
You must be signed in to change notification settings - Fork 66
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
Running NewSegment properly #258
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good, but having a test would be much better imho
@@ -74,11 +74,11 @@ def _configure_backends(spm_dir=None, matlab_exec=None, spm_mcr=None, | |||
|
|||
# prepare template TPMs | |||
tissue1 = ((os.path.join(SPM_DIR, tissue_path, 'TPM.nii'), 1), | |||
2, (True, True), (False, False)) | |||
2, (True, True), (True, True)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A short comment on these parameters would be welcome
|
||
normalize: bool, optional (default False) | ||
flag indicating whether warped brain compartments (gm, wm, csf) are to | ||
be generated (necessary if the caller wishes the brain later) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a flag related to spm.Segment
. It doesn't hold for spm.NewSegment
: to be removed.
# final hard link | ||
for subject_data in subjects: | ||
subject_data.hardlink_output_files(final=True) | ||
|
||
finalize_report() | ||
return subjects |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we have a test that takes an anat image as input and checks that tpms are generated and / or normalized ?
Because of SPM8, I've tested under SPM12 and it's working. |
LGTM now. |
As long as the fsl_feeds example on circle-ci looks ugly (see thumbnail above), this looks like a regression to me. Could you please propagate your changes so that circle-ci looks good ? |
Looks like this PR is going to rot here really fast :/. Any updates on the raise issues ? |
No, please merge it. We badly need it. |
I think we need to drop spm8 support. |
LGTM. |
Trying to address #77
do_subject_newsegment
do_subjects_dartel
do_subject_normalize