Skip to content

Conversation

chrisgorgo
Copy link
Member

Integrating C-PACs FSLGLM into already existing GLM. As soon as this is merged I'll send a PR to C-PAC.

surchs and others added 2 commits July 8, 2013 20:47
Conflicts:

	nipype/interfaces/fsl/__init__.py
	nipype/interfaces/fsl/model.py
desc = 'file or image output')
out_file = File(exists=True, desc=('file name of GLM parameters'
+ ' (if generated)'))
out_cope = OutputMultiPath(exists=True, desc='output file name for COPEs' +
Copy link
Member

Choose a reason for hiding this comment

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

are you sure these should be exists=True? a lot of them are filled under if statements.

Copy link
Member Author

Choose a reason for hiding this comment

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

If left alone as Undefined even though exists=True they will not raise an error. Our own syntax is confusing us!

Copy link
Member

Choose a reason for hiding this comment

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

so Undefined is ok, but if it is set, then the file must exist. i forgot that.

outputs['out_file'] = os.path.abspath(outputs['out_file'])

if isdefined(self.inputs.out_cope):
outputs['out_cope'] = os.path.abspath(self.inputs.out_cope)
Copy link
Member

Choose a reason for hiding this comment

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

this implies that all the output names have to be specified for this node to return things. can we change this to genfile or name_source?

Copy link
Member Author

Choose a reason for hiding this comment

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

These outputs are generated only if the corresponding output filenames are provided. This is a traits.Either(traits.Bool, File()) pattern that we should address in the refactor as well (by merging "source_name" with SEMLike). For now I would just merge it.

chrisgorgo added a commit that referenced this pull request Jul 15, 2013
@chrisgorgo chrisgorgo merged commit 7b44101 into nipy:master Jul 15, 2013
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