Skip to content

Commit

Permalink
Merge branch 'master' of ssh://github.com/mbreese/swalign
Browse files Browse the repository at this point in the history
  • Loading branch information
mbreese committed Oct 29, 2015
2 parents bec51eb + 246ac4f commit 4dc0980
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions swalign/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ def __init__(self, filename=None, text=None, wildcard_score=0):
self.wildcard_score = wildcard_score

for line in fs:
if line[0] == '#':
if line[0] == '#' or not line.strip():
continue

if not self.bases:
self.bases = line.split()
self.base_count = len(self.bases)
else:
cols = line.split()
self.scores.extend([int(x) for x in cols[1:]])
self.scores.extend([float(x) for x in cols[1:]])

fs.close()

Expand Down

0 comments on commit 4dc0980

Please sign in to comment.