Closed adrien-berchet closed 3 years ago
@mgeplf , I think aleksei is going on vacation, could you help us merge this, it is blocking the release of region-grower for NCx. I't part of an effort of adrien to make our codes more reproducible/stable wrt random numbers and parallelization. Thank you!
Ah, I can merge here! Let see if I can release as well!
@arnaudon the version of the new release must be 2.5.0 because it also includes #54 which you forgot to mention the release's notes. Delete 2.4.5 release. Release the correct 2.5.0.
ah but this is not breaking, it is a new feature only.
ok, I updated it, I hope it works
Context
In region-grower we use Numpy random generator objects instead of the global numpy.random. We need to pass these objects to graft_axon as there is a random generation in grafting_position.
Resolution
This PR adds new parameters to allow to pass a random number generator. If nothing is passed, numpy.random is used, so it is not a breaking change.