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

Mate operator fix #1268

Merged
merged 2 commits into from
Feb 23, 2024
Merged

Mate operator fix #1268

merged 2 commits into from
Feb 23, 2024

Conversation

perib
Copy link
Contributor

@perib perib commented Aug 25, 2022

What does this PR do?

_mate_operator has a wrapper that tries to check if all its returned values are valid pipelines. The last returned item is actually a dictionary and does not need to be evaluated. This led to the following error being thrown any time this function was called

_pre_test decorator: _mate_operator: num_test=0 'str' object has no attribute 'arity'.

I added a check in the decorator specific to _mate_operator to prevent this. Alternatively, We could also implement a generic check to skip anything that is not a pipeline/deap individual

@RianKoja
Copy link

RianKoja commented Jan 9, 2024

Seems nice! I get this error a lot.

@jay-m-dev jay-m-dev requested a review from nickotto February 23, 2024 18:58
@nickotto nickotto merged commit 7bc629a into EpistasisLab:master Feb 23, 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.

3 participants