Skip to content
Permalink
Browse files

augur/titer_model.py: fix calculation of mean_potentency for model ex…

…port.
  • Loading branch information...
rneher committed Feb 8, 2019
1 parent 73a9b38 commit 923b731c798cdb561fd54dc997d8911583f28f40
Showing with 2 additions and 2 deletions.
  1. +2 −2 augur/titer_model.py
@@ -578,8 +578,8 @@ def compile_potencies(self):
mean_potency = defaultdict(int)
for (ref_vir, serum), val in self.serum_potency.items():
mean_potency[ref_vir] += self.titer_counts[ref_vir][serum]*val
for ref_clade in self.ref_strains:
potency_json[ref_clade]['mean_potency'] = 1.0*mean_potency[ref_vir]/np.sum(list(self.titer_counts[ref_vir].values()))
for ref_vir in self.ref_strains:
potency_json[ref_vir]['mean_potency'] = 1.0*mean_potency[ref_vir]/np.sum(list(self.titer_counts[ref_vir].values()))

return potency_json

0 comments on commit 923b731

Please sign in to comment.
You can’t perform that action at this time.