Skip to content

Running NewSegment properly#258

Open
mrahim wants to merge 2 commits into
neurospin:masterfrom
mrahim:newsegment
Open

Running NewSegment properly#258
mrahim wants to merge 2 commits into
neurospin:masterfrom
mrahim:newsegment

Conversation

@mrahim

@mrahim mrahim commented Jan 16, 2017

Copy link
Copy Markdown
Collaborator

Trying to address #77

  • NewSegment is now run in parallel with or without DARTEL with do_subject_newsegment
  • DARTEL is run separately from Newsegment in do_subjects_dartel
  • Normalize12 is used with NewSegment in do_subject_normalize

@mrahim mrahim changed the title Running Newsegment properly Running NewSegment properly Jan 16, 2017

@bthirion bthirion left a comment

Copy link
Copy Markdown
Member

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

# prepare template TPMs
tissue1 = ((os.path.join(SPM_DIR, tissue_path, 'TPM.nii'), 1),
2, (True, True), (False, False))
2, (True, True), (True, True))

Copy link
Copy Markdown
Member

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)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand.

Copy link
Copy Markdown
Collaborator Author

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.

subject_data.hardlink_output_files(final=True)

finalize_report()
return subjects

Copy link
Copy Markdown
Member

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 ?

@dohmatob

Copy link
Copy Markdown
Contributor

This doesn't look good.

logo

@mrahim

mrahim commented Jan 17, 2017

Copy link
Copy Markdown
Collaborator Author

Because of SPM8, I've tested under SPM12 and it's working.

@bthirion

Copy link
Copy Markdown
Member

LGTM now.

@dohmatob

Copy link
Copy Markdown
Contributor

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 ?

@dohmatob

dohmatob commented Apr 21, 2017

Copy link
Copy Markdown
Contributor

Looks like this PR is going to rot here really fast :/. Any updates on the raise issues ?

@bthirion

Copy link
Copy Markdown
Member

No, please merge it. We badly need it.

@mrahim

mrahim commented Apr 22, 2017

Copy link
Copy Markdown
Collaborator Author

@bthirion

Copy link
Copy Markdown
Member

LGTM.

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

Successfully merging this pull request may close these issues.

3 participants