WIP: Change the signature of pick_random#155
WIP: Change the signature of pick_random#155Rogier van der Geer (rogiervandergeer) wants to merge 1 commit intomasterfrom
Conversation
Parent pickers are no longer passed any kwargs. The pick_random must now be initialised before use, the number of parents passed to it upon initialization. In addition, pickers must always return a sequence of picked parents - even if it is only one. These changes make it much easier to implement more complex picking algorithms, and in addition they remove the requirement for the select_arguments() decorator, which hurts my eyes.
|
This does feel like a breaking change. Might a deprecation warning be a nice thing to add here? |
It is certainly is a breaking change. Hence it would probably be best to only publish this in v2.0. Adding a deprecation warning here doesn't make much sense: you'd be saying "this isn't going to work in the future, but you cannot do anything about it right now". |
|
I can live with that. But since we're not at version 1 yet, is there a reason you immediately want to jump to 2? |
|
Oops, I thought we were… Let’s call it 1.0 then 😊
On 18 May 2020, at 09:28, vincent d warmerdam <notifications@github.com<mailto:notifications@github.com>> wrote:
I can live with that. But since we're not at version 1 yet, is there a reason you immediately want to jump to 2?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#155 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACZ5BBAPTLOF5NTJGMZDXM3RSDPRFANCNFSM4NBZU7ZA>.
|
|
Rogier van der Geer (@rogiervandergeer) are there other changes we'd like to make for version 1? I mean ... version 1 is a milestone release. |
|
One thing that I've been wondering about is that we may then also submit evol to this: https://joss.theoj.org/ |
|
I guess! Let’s not release anything yet 😊
On 18 May 2020, at 10:17, vincent d warmerdam <notifications@github.com<mailto:notifications@github.com>> wrote:
@rogiervandergeer<https://github.com/rogiervandergeer> are there other changes we'd like to make for version 1? I mean ... version 1 is a milestone release.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#155 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACZ5BBDHFY5PQQ6FCTIG3TTRSDVKJANCNFSM4NBZU7ZA>.
|
Parent pickers are no longer passed any kwargs. The pick_random must
now be initialised before use, the number of parents passed to it
upon initialization. In addition, pickers must always return a sequence
of picked parents - even if it is only one.
These changes make it much easier to implement more complex picking
algorithms, and in addition they remove the requirement for the
select_arguments() decorator, which hurts my eyes.