Skip to content

Commit

Permalink
Stop coercing compare value to int, use float
Browse files Browse the repository at this point in the history
Former-commit-id: 04d28b6
  • Loading branch information
ar0ch committed Jan 27, 2017
1 parent c1a4a3a commit 69ee88b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stringMLST.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ def getMaxCount(alleleCount, fileName):
secondSupport[loc] = {}
num_max = []
num_max2 = []
compare = int(re.sub("\*$", "", str(max_n[loc])))
compare = float(re.sub("\*$", "", str(max_n[loc])))
for num in alleleCount[loc]:
if alleleCount[loc][num] == compare:
if "\*" in str(max_n[loc]):
Expand Down

0 comments on commit 69ee88b

Please sign in to comment.