Conversation
MarJMue
left a comment
There was a problem hiding this comment.
I can't test it right now, but it looks correct.
MarJMue
left a comment
There was a problem hiding this comment.
I do not fully get what happened, but the code is definitely better to read and should be more robust.
|
Another note: |
|
There's still something generally wrong it seems |
|
You added the oscillator a second time before the comparison. The add method changes the object permanently. It is working as intended. Edit: Which might also be a problem in my example. |
|
Yes, this works: |
|
From a design perspective, it's a bit odd that we return the instance and alter it. Normally, it's either one of them (altering instance w/o instance return on function call or new instance return on function call) |
|
I'm dropping |
You are right. It is a bit confusing. I think altering it is the better way. If you want a second dispersion you tend to start from scratch anyway. |
|
yeah, so maybe we drop that we return the instance itself at some point. Then it feels more natural what's happening there. Anyways, out of scope for this PR :) |
Completely agree. Doesn't add any real value. |
|
I'll wait for confirmation from @MrJeremyFisher to see if it works for them, too, before I merge this in. |
|
Sorry for the delayed response. These changes resolve my issue. Thanks for you work! |
|
Perfect! So I'll merge this in and it should be available with the next version. |
Fixes #213