-
Notifications
You must be signed in to change notification settings - Fork 11
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
Fix counting of mutations in genome.mutate #157
Fix counting of mutations in genome.mutate #157
Conversation
thanks for the update ✨ unfortunately travis is unhappy with the new changes, could you please have a look and fix the issues? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks for fixing this, I just have some small suggestions.
Actually, don't we need to adapt the parameters set in the examples with this change, @jakobj ?
regarding the example: the mutation rate was chosen accordingly to the CGP literature, assuming the implementation is correct, so it should be fine. seems like they all still work, don't they? |
I haven't tested the examples. The CI only checks if they crash, not if they convert. |
I think that CI is failing because of |
good point! @HenrikMettler please also manually test the examples and check whether they converge properly. |
For the examples:
|
no, i think it's fine, no need to change it as long as it converges within the given number of generations. thanks for checking this :) [edit] |
the latest commit should clear all the issues. I can't squash though (I think) since i don't have the rights to squash and merge (if I understand this: https://cloudfour.com/thinks/squashing-your-pull-requests/ correctly) |
6cfe9c7
to
f855c06
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for catching this bug and fixing it right away.
Before we merge, one more (minor) thing: could you make the commit message a bit nicer, i.e., remove the "some more changes" lines etc., and stick to imperative tense and capitalized beginning? |
…ation rates for correct number of mutations.
f855c06
to
f3932d9
Compare
This PR fixes the mutation counter by explicitly comparing the number of differences in dna before and after mutations
fixes #156