-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fix: Fitter exception message #41 #42
Fix: Fitter exception message #41 #42
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR, this obviously fixes the message but... I just realized that the if statement has another issue (not your fault of course): the error should not be raised if optimizer is None
(a default Optimizer
will be chosen in that case), the closing parentheses comes too early... Mind fixing this issue as well? Thanks again!
No problem, I'll fix the parentheses |
There is a test case that expects brian2modelfitting/brian2modelfitting/fitter.py Lines 580 to 588 in a6a41e8
should I add an extra check before the last one: if ((optimizer is None ) and (self.optimizer is not None)):
optimizer = self.optimizer which will use the optimizer of the previous fit. |
Apologies, I thought we handle |
|
Good point. The |
Thanks for the changes, this all looks good to me now after a superficial review. I am still out-of-office at the moment, but I will have a last close look at this in about two weeks before finally merging it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good to me, thanks again for the contribution.
Fixing issue #41