Closed rosemckeon closed 5 years ago
Hi @bradduthie I'm going through your replies this morning. I've pushed my output enhancements this morning too, so you will need to do another pull, but can set a file to save to now.
The main functions I have changed, that you might want to look over, are:
If I can, I might try and get a few of the bugs fixed and pushed so they can be included too.
@rozeykex Sounds good! I'll look over the functions that you mentioned and let you know if there are any edits to consider.
@rozeykex I think that the line defining pop$size
in the grow
function is causing plants of infinite population size? Did this with some quick debugging
Functions reproduce
and get_pollen_donors
look good.
The function create_zygotes
works. Surprised to learn that:
t1 <- c(1, 0, 1, 0, 1, 1)
t2 <- c(TRUE, FALSE, TRUE, FALSE, TRUE, TRUE)
Are not evaluated by which
in the same way.
In sample_genomes
, is the explicit dplyr::select(mum, dad)
necessary? dplyr
should be read in, and you can require it as a dependency. Otherwise, this also looks good. Happy to approve merge if you're ready @rozeykex .
In
sample_genomes
, is the explicitdplyr::select(mum, dad)
necessary?dplyr
should be read in, and you can require it as a dependency. Otherwise, this also looks good. Happy to approve merge if you're ready @rozeykex .
@bradduthie It is at the moment, because I made my natural selection function called select
(d'oh!) - I'll make an issue to fix this once the important stuff is done.
@rozeykex I think that the line defining
pop$size
in thegrow
function is causing plants of infinite population size? Did this with some quick debugging
Hmm, @bradduthie I think maybe the Inf growth rates were causing Inf sizes? Can you see if this is still a problem for you with the new fixes I've pushed? I'll have a go at running the sim with your stop edits merged in too.
Ooops, didn't mean to dismiss the review! I'm going to merge anyway @bradduthie.
Everything since our meeting with Mario: