Skip to content

Commit

Permalink
make exception for READS %d:%d data; bump to 1.0.3 version
Browse files Browse the repository at this point in the history
  • Loading branch information
t47io committed Mar 6, 2016
1 parent a9826f8 commit c8bfe31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rdatkit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
from .varna import VARNA
from .util import Ontology

__version__ = '1.0.2'
__version__ = '1.0.3'
2 changes: 1 addition & 1 deletion rdatkit/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def _parse_data_block(self, line, key, start_idx=0):

fields = split(line.strip('\n ,'), delims='\t, ')
data_idx = int(fields[0]) - 1 if start_idx else None
data = [float(x) for x in fields[start_idx:]]
data = [float(x) if ':' not in x else float(x[:x.find(':')]) for x in fields[start_idx:]]
return (data, data_idx)

def _parse_annotations(self, s):
Expand Down

0 comments on commit c8bfe31

Please sign in to comment.