Skip to content

Commit

Permalink
fix regex closes #73
Browse files Browse the repository at this point in the history
  • Loading branch information
averagehat committed Mar 30, 2016
1 parent 858f4d2 commit 8976ba4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bio_bits/beast_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def hours_states_to_sec(line, chainlength):
>>> hours_states_to_sec(line.replace('million','billion'), chainlength*1000)
6101999
'''
p = '^(\d+).*?((\d+\.\d+)\shours/[mb]illion\sstates)$'
p = '^(\d+).*?((\d+(\.\d+)*)\shours/[mb]illion\sstates)$'
m = re.search(p, line)
if not m:
raise ValueError(line + ' is not a valid beast output line')
Expand Down

0 comments on commit 8976ba4

Please sign in to comment.