-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add test for randomize_genome function of individual classes #190
Conversation
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.
yes! more tests! :) i am wondering however, whether this would not better fit into test_genome
the individuals are just forwarding everything to the genome aren't they? furthermore, from a quick grep it seems like randomize_genome
is never used?! is this possible? and if so, shouldn't we rather remove it to keep confusion levels low?
oh and i'm confused: how does this "close" itself? ;) |
haha, fixed. |
My main motivation here was to not leave the code untested, but yeah, this function is pretty redundant and if it not used, we can also remove it altogether, I agree. If that is our decision, we can close this PR and I'll open another one tomorrow, removing this functionality from the classes. |
On 2nd thought, I think that we should instead of removing the function, rather use it in the |
I implemented the change in |
Please take another look @jakobj |
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.
just one small suggestion that would avoid an import of copy
, otherwise this look good!
467fb9e
to
a43c223
Compare
Yep, thanks, I had forgotten about that, fixed it now and already squashed commits to 2 commits. @jakobj |
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 great! 👍 and merging
Adds a simple test for the
randomize_genome
function of the individual classes. All it tests is that therandomize_genome
function does indeed change the dna.Closes #186