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

Vectors: Sterility modifier as probability #70

Open
Bridenbecker opened this issue Dec 12, 2024 · 0 comments
Open

Vectors: Sterility modifier as probability #70

Bridenbecker opened this issue Dec 12, 2024 · 0 comments

Comments

@Bridenbecker
Copy link
Collaborator

Prashanth would like this feature and a Blood Meal Mortality fix by March 1st, 2025.

  • make sure the sterility modifier is between 0 and 1
  • In Update_Egg_Hatching(), when about to create the new cohort of larva, we use the sterility modifier and a binomial approximation to determine which larva are sterile and which are not. We create one cohort that is non-sterile and one that is sterile.
  • In Update_Egg_Laying(), we remove our current check for sterility
  • In AddAdultsAndMate(), where we create the mated female cohort, we set the cohort to be sterile if either male or female is sterile. (though you might want to know how many non-sterile females mated with sterile males) - this lets us use the same sterile flag.
  • In AddEggsToLayingQueue(), we add "is not sterile" to the "if has mated" check - i.e. don't lay eggs if cohort is sterile.
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

No branches or pull requests

1 participant