Skip to content

Commit

Permalink
Printing variants count
Browse files Browse the repository at this point in the history
  • Loading branch information
gvegayon committed Dec 6, 2023
1 parent 68de576 commit e9a460e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
10 changes: 9 additions & 1 deletion epiworld.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9004,6 +9004,14 @@ inline const Model<TSeq> & Model<TSeq>::print(bool lite) const

}

auto nvariants = db.get_n_viruses() - n_viruses_model;
if (nvariants > 0)
{

printf_epiworld(" ...and %li more variants...\n", nvariants);

}

if (viruses.size() == 0u)
{
printf_epiworld(" (none)\n");
Expand Down Expand Up @@ -18352,7 +18360,7 @@ inline ModelSEIRDCONN<TSeq> & ModelSEIRDCONN<TSeq>::initial_states(
) {

Model<TSeq>::initial_states_fun =
create_init_function_seir<TSeq>(proportions_)
create_init_function_seird<TSeq>(proportions_)
;

return *this;
Expand Down
8 changes: 8 additions & 0 deletions include/epiworld/model-meat-print.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,14 @@ inline const Model<TSeq> & Model<TSeq>::print(bool lite) const

}

auto nvariants = db.get_n_viruses() - n_viruses_model;
if (nvariants > 0)
{

printf_epiworld(" ...and %li more variants...\n", nvariants);

}

if (viruses.size() == 0u)
{
printf_epiworld(" (none)\n");
Expand Down

0 comments on commit e9a460e

Please sign in to comment.