pascualgroup / varmodel2

0 stars 0 forks source link

Transition times for other infections not updated on clearance? #36

Open edbaskerville opened 8 months ago

edbaskerville commented 8 months ago

After immunity is gained from the last expressed gene, it seems that the transition times for other infections are not updated. See:

    if(infection->expression_index == N_GENES_PER_STRAIN) {
        clear_infection(infection, true);
    }
    else {
        update_host_infection_times(infection->host);
    }

The else should be removed (?), yielding

    if(infection->expression_index == N_GENES_PER_STRAIN) {
        clear_infection(infection, true);
    }
    update_host_infection_times(host);

around line 1196 (depending on version)

edbaskerville commented 8 months ago

Fixed in linked branch, no statistically observable effect on behavior.