Skip to content

Update example to prevent obscuring passed params #1366

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 1 commit into from
Feb 16, 2016

Conversation

gjcooper
Copy link
Contributor

Example in source code comments can introduce bug in user code if
followed blindly, passing params as positional argument actually gets
it assigned to parameter named compute_all_outputs, meaning params gets
default values. Fix is to explicitly use named argument in function
call.

Example in source code comments can introduce bug in user code if
followed blindly, passing `params` as positional argument actually gets
it assigned to parameter named `compute_all_outputs`, meaning `params` gets
default values. Fix is to explicitly use named argument in function
call.
chrisgorgo added a commit that referenced this pull request Feb 16, 2016
Update example to prevent obscuring passed params
@chrisgorgo chrisgorgo merged commit e4f7300 into nipy:master Feb 16, 2016
@gjcooper gjcooper deleted the FixBedpostxEx branch February 16, 2016 02:09
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