Skip to content

Commit

Permalink
traits: Fix typo in weights import
Browse files Browse the repository at this point in the history
  • Loading branch information
trvrb committed Feb 12, 2020
1 parent a72ac6c commit db75000
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions augur/traits.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ def run(args):
if line[0]=='#':
continue
name, trait, value = line.strip().split(sep)
if trait in weight_dict:
weight_dict[trait][name] = float(value)
if name in weight_dict:
weight_dict[name][trait] = float(value)
for c in weight_dict:
if len(weight_dict[c])==0:
weight_dict[c]=None
Expand Down

0 comments on commit db75000

Please sign in to comment.