-
Notifications
You must be signed in to change notification settings - Fork 0
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
Create resistance mutations module #219
base: development
Are you sure you want to change the base?
Conversation
…mestep column naming to avoid issues with previous code.
|
||
def get_viral_load_matrix(self, max_viral_load): | ||
# viral_load_matrix[active_drugs][cont_on_art][adherence] | ||
# FIXME: is there a better way to do this? |
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.
This is ridiculously inefficient for population sizes of 100k+, but even switching to a static matrix containing a, b, and c values for a a * max_viral_load + b + c * min_vl_on_art
calculation isn't much better because the main problem appears to be that a separate calculation is happening for every person in the population.
I think it looks like the vl calculation will have to be separated into more transform_group
-able chunks to improve performance.
Addresses #211.