You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
duplicate_with_new_array changed to duplicate_with_new_data #621
The basesignal class method "duplicate_with_new_array" has been changed by "duplicate_with_new_data" in version 0.7, it can produce back compatibility errors.
In my opinion, the old name should have been retained as an alias for at least one development cycle, eventually deprecated, and later removed, but, hey, hindsight is 20/20. In the words of Michael Scott, we should have had hindsight.
the old name should have been retained as an alias for at least one development cycle, eventually deprecated, and later removed
I completely agree. It was more a case of oversight than lack of foresight - the change was in a PR that was merged a short time before the release, and we didn't notice the change!
I actually think we should reintroduce an alias in the next release.
Activity
jpgill86 commentedon Dec 12, 2018
Indeed, this is affecting elephant, and a simple fix is proposed in NeuralEnsemble/elephant#189.
In my opinion, the old name should have been retained as an alias for at least one development cycle, eventually deprecated, and later removed, but, hey, hindsight is 20/20. In the words of Michael Scott, we should have had hindsight.
apdavison commentedon Dec 12, 2018
I completely agree. It was more a case of oversight than lack of foresight - the change was in a PR that was merged a short time before the release, and we didn't notice the change!
I actually think we should reintroduce an alias in the next release.
jpgill86 commentedon Dec 12, 2018
How about a quick fix in 0.7.1?
Add an alias for `duplicate_with_new_data`, for backwards compatibility.
Add an alias for `duplicate_with_new_data`, for backwards compatibility.
apdavison commentedon Dec 13, 2018
Done. Released in v 0.7.1