creates default Population and MuPlusLambda objects if none are passed to the function. Unfortunately, these will be persistent, i.e., subsequent calls to evolve seem to reuse the same objects.
To fix this the default argument should be None and they should initialized to the defaults in the body of the function if None is detected.
The current
evolve
signaturecreates default
Population
andMuPlusLambda
objects if none are passed to the function. Unfortunately, these will be persistent, i.e., subsequent calls toevolve
seem to reuse the same objects.To fix this the default argument should be
None
and they should initialized to the defaults in the body of the function ifNone
is detected.