Skip to content

Fix bug in Normalize with modulation #1023

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

Merged
merged 2 commits into from
Jan 20, 2015
Merged

Conversation

spikefairway
Copy link

I fixed bug reported in http://neurostars.org/p/2768/, wrong prefix in case to execute 'Normalize' with modulation.
I'd appreciate it if you could reflect this change.

@satra
Copy link
Member

satra commented Jan 20, 2015

@spikefairway - thanks. could you please add an updated CHANGES file?

@@ -497,20 +497,24 @@ def _list_outputs(self):
outputs['normalized_files'] = self.inputs.apply_to_files
outputs['normalized_source'] = self.inputs.source
elif 'write' in self.inputs.jobtype:
if isdefined(self.inputs.write_preserve) and self.inputs.write_preserve:
prefixNorm = ''.join(['m', self.inputs.out_prefix])
Copy link
Member

Choose a reason for hiding this comment

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

one quick question, just to ensure i understand this correctly. so if write_preserve is set, then the output prefix doesn't matter?

Copy link
Author

Choose a reason for hiding this comment

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

No. Output prefix is fixed such that it corresponds to actual output from SPM (its filename starts 'm') in case that 'write_preserve' is set to True.

Copy link
Member

Choose a reason for hiding this comment

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

thx.

@spikefairway
Copy link
Author

@satra Sure. I added an updated CHANGES file. Please refer it.

satra added a commit that referenced this pull request Jan 20, 2015
Fix bug in Normalize with modulation
@satra satra merged commit 9fa2a32 into nipy:master Jan 20, 2015
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.

2 participants