Skip to content

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

2 participants