Skip to content

Commit

Permalink
added full vl value on key of viral load
Browse files Browse the repository at this point in the history
  • Loading branch information
lrdossan committed Aug 4, 2023
1 parent 521ec42 commit 2c13672
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions caimira/apps/calculator/report_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def non_zero_percentage(percentage: int) -> str:
return "99.9%"
else:
return "{:0.1f}%".format(percentage)


def manufacture_viral_load_scenarios_percentiles(model: mc.ExposureModel) -> typing.Dict[str, mc.ExposureModel]:
viral_load = model.concentration_model.infected.virus.viral_load_in_sputum
Expand All @@ -338,7 +338,7 @@ def manufacture_viral_load_scenarios_percentiles(model: mc.ExposureModel) -> typ
specific_vl_scenario = dataclass_utils.nested_replace(model,
{'concentration_model.infected.virus.viral_load_in_sputum': vl}
)
scenarios[round(np.log10(vl))] = np.mean(specific_vl_scenario.infection_probability())
scenarios[vl] = np.mean(specific_vl_scenario.infection_probability())
return scenarios


Expand Down

0 comments on commit 2c13672

Please sign in to comment.