-
-
Notifications
You must be signed in to change notification settings - Fork 48
Use keyword arguments to set the tolerance #13
Conversation
|
Please use the same names |
|
I renamed the keywords, but I made a judgment call in the |
|
@mweastwood : Basically I think this is a step in the right direction. Note that your changes have quite some overlap with @tlycken's API suggestions in #7. Maybe the two PR's could be coordinated somehow? |
|
@mweastwood @acroy @stevengj I think Regarding #7, I doubt that it's a good idea to make all changes suggested in that thread at once. I started the discussion there as a pull request mainly to have something to base the discussion on, but it's probably wiser to do it all in small steps. Whatever other changes I made in those commits are going to have to take this one into account anyway, so as far as I care we might as well merge this now and take care of other ideas separately. |
|
@tlycken : I also think starting with this PR would be the right thing. But I would say that your commits in #7 already implement many of the points we want to have eventually (duck typing, norm, coherent arguments). IMO it would be a pity not to use it. |
|
@acroy: Sure. But it's easy to rebase that branch onto something like this if necessary - and since some of the things already implemented in #7 are still under discussion (e.g. function arguments) it might take some time before that can be merged. At least some of the changes in that branch are easy enough to implement to fix that it might be better to do them one at a time instead of all at once - baby steps =) |
|
@tlycken : Sorry for being impatient - let's take it one feature at a time. I guess we shouldn't highjack this PR any more, so let's continue the discussion over at #7. Regarding this PR: To support |
|
@acroy It depends. In quadgk the condition for accepting an error is However, whichever condition we want to use, I think this is the only place where we need to implement it. |
|
@tlycken The easiest solution probably is setting |
|
@stevengj Correct me if I am wrong, but testing |
|
I think of The condition for convergence in @acroy: Note both |
|
@stevengj @acroy Yeah, sorry about the misinformation from @mweastwood Would you mind adding a commit to this PR which fixes this? |
|
@stevengj : Thanks for the clarification! As you say, in practice it probably won't matter much, but I agree that treating
|
|
@acroy, unrecognized keywords won't be silently ignored, because they are eventually passed to |
|
@stevengj: Sorry, you are right of course! |
|
Following the discussion, I added |
|
@mweastwood : Thanks for the commit! What do you mean by inconsistent behavior? |
|
@acroy : maybe I need to review the For instance |
|
@mweastwood : Mhmm, I think (given the definition of |
|
@mweastwood : I think we should actually replace the convergence stuff in |
|
@acroy : Ok, I probably won't get around to this until early next week. |
|
Hang on. Why don't we just use our |
|
@acroy I haven't looked at it at all, but it sounds to me like a good idea; less code to maintain is better code to maintain. However, we should make sure we carefully compare the current implementation versus using BUT it's a big thing to do, and as such out of scope for this PR =) |
|
@tlycken : Indeed, doing just the minimal changes in Anyways, this should definitely be a new PR. But if we are going in this direction, we might just use @mweastwood's changes as they are (maybe add some comment/warning that |
|
@pao I think this is good to merge. |
|
@tlycken : I guess it has to be rebased & squashed first? @mweastwood : In view of #16 it is very likely that |
|
@tlycken @acroy Correct, merge status is not green; the changeset conflicts right now. |
forgot to remove some print statements... Renamed keywords to abstol and reltol Added abstol to ode45
|
I believe I managed to rebase+squash my commits (never done this before, so I might have messed up). Also added a simple check for |
|
@mweastwood : This looks good to me. I don't know if you have to squash all commits into just one? |
|
As long as the merge works fine and gives the correct result, there is no reason to be bullish about rebasing and squashing. We should spend our time on writing code to change history, not to prettify the git log. This is anyway a low traffic repo, so the git log will be readable anyway. |
|
@ivarne: thanks for the comment, I just wasn't sure about the policy. Anyways I would me more than happy to see this merged and move on with tackling the other issues. |
|
@acroy @ivarne @tlycken One of you should probably request write privileges to this repository from @ViralBShah or @StefanKarpinski, since you are actively working here and seem to know what you're talking about. (Five intentional pings in one comment!) |
Use keyword arguments to set the tolerance
|
Stefan added us yesterday. |
The title is fairly self-explanatory.