Skip to content

Commit

Permalink
added robust primer location parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
preciserobot committed Oct 4, 2016
1 parent ae0bcbe commit ccc9b2f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zippy/zippy.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,11 +612,14 @@ def readprimerlocations(locationfile):
for line in readfile:
if not header:
header = line
elif len(line)<3:
pass # empty line (CR/LF)
else:
try:
row = dict(zip(header,line))
updateList.append([row['PrimerName'], Location(row['Box'].strip('Bbox'), row['Well'])])
except:
raise
raise Exception('InputFormatError')
return updateList

Expand Down

0 comments on commit ccc9b2f

Please sign in to comment.