Skip to content
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

fixed bug with fit extra returns #2933

Merged
merged 1 commit into from
Oct 17, 2023
Merged

fixed bug with fit extra returns #2933

merged 1 commit into from
Oct 17, 2023

Conversation

samcoveney
Copy link
Contributor

Fixed a small bug in the iteration wrapper for fitting, introduced after #2730 allowing fitting functions to return more than just the parameters.

@jhlegarreta
Copy link
Contributor

Thanks for doing this @samcoveney. A test should be added so that this does not happen again.

@samcoveney
Copy link
Contributor Author

The problem is that most of the tests for DiPy are so small that they don't trigger the use of the iterative decorators for the fitting routines... so potentially would need a bigger fix.

@jhlegarreta
Copy link
Contributor

The problem is that most of the tests for DiPy are so small that they don't trigger the use of the iterative decorators for the fitting routines... so potentially would need a bigger fix.

Did not have a look at the test module that is related to this, but nothing prevents us from writing other tests as needed, isn't it?

@samcoveney
Copy link
Contributor Author

You are right @jhlegarreta we can write additional checks if needed on a case by case basis. At the moment, the only fitting routine making use of extra returns is the RESTORE algorithm, which does not use the iterative wrapper. This is partly why this was missed in testing.

I have a branch I am working on that has other fitting functions returning extra useful information, which is why I discovered the mistake. And until I make the pull request adding this extra functionality, there isn't really an ideal way to write these tests at the moment. I'll put these tests in that pull request.

@jhlegarreta
Copy link
Contributor

Sounds good. Thanks for the effort @samcoveney.

@skoudoro
Copy link
Member

Thank you @samcoveney for the feedback, looking forward for your new PR. Thanks @jhlegarreta for the review. merging

@skoudoro skoudoro merged commit 2bfa9be into dipy:master Oct 17, 2023
21 of 22 checks passed
@samcoveney
Copy link
Contributor Author

Thanks @jhlegarreta for your feedback, and thanks @skoudoro

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.

None yet

3 participants