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

permissible_values is a mixture of scalars and arrays #388

Closed
jakobj opened this issue Mar 29, 2024 · 0 comments · Fixed by #389
Closed

permissible_values is a mixture of scalars and arrays #388

jakobj opened this issue Mar 29, 2024 · 0 comments · Fixed by #389
Assignees
Labels
bug Something isn't working
Milestone

Comments

@jakobj
Copy link
Member

jakobj commented Mar 29, 2024

permissible_values in Genome should be a list of arrays (https://github.com/Happy-Algorithms-League/hal-cgp/blob/master/cgp/genome.py#L107). However, it seems to be a list of scalars and arrays (e.g.,https://github.com/Happy-Algorithms-League/hal-cgp/blob/master/cgp/genome.py#L189 vs https://github.com/Happy-Algorithms-League/hal-cgp/blob/master/cgp/genome.py#L198).

This causes problems at other points in the code (e.g., Genome.mutate) and should be fixed. Ugh, if only we had strict typing. ;)

@jakobj jakobj added the bug Something isn't working label Mar 29, 2024
@jakobj jakobj added this to the 0.4.0 milestone Mar 29, 2024
@jakobj jakobj self-assigned this Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant