Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crossover 3.11 bug fix #205

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Crossover 3.11 bug fix #205

wants to merge 1 commit into from

Conversation

ppdebreuck
Copy link
Owner

@ppdebreuck ppdebreuck commented Mar 28, 2024

mother_genes = random.sample(self.genes.keys(), k=len(self.genes) // 2)
introduced in #198 will be problematic in python 3.11.
Solution: add sorted()

@ppdebreuck ppdebreuck changed the title Crossover 3.10 bug fix Crossover 3.11 bug fix Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant