Skip to content
Snippets Groups Projects
Commit 7dce484f authored by tpylak's avatar tpylak
Browse files

SE-352 do not strip tabs from the library template (to allow empty wells)

SVN: 22130
parent 919a5d09
No related branches found
No related tags found
No related merge requests found
...@@ -101,7 +101,7 @@ class PlateInitializer: ...@@ -101,7 +101,7 @@ class PlateInitializer:
lines = template.splitlines() lines = template.splitlines()
lines = util.removeTrailingEmptyElements(lines) lines = util.removeTrailingEmptyElements(lines)
tsvLists = [ util.removeTrailingEmptyElements(line.split("\t")) for line in lines ] tsvLists = [ line.split("\t") for line in lines ]
self.validateLibraryDimensions(tsvLists) self.validateLibraryDimensions(tsvLists)
......
...@@ -68,8 +68,7 @@ def removeTrailingEmptyElements(list): ...@@ -68,8 +68,7 @@ def removeTrailingEmptyElements(list):
pos = len(list) pos = len(list)
while (pos > 0): while (pos > 0):
pos = pos - 1 pos = pos - 1
# do not remove tabs if not list[pos].strip():
if not list[pos].strip(' \n'):
del list[pos] del list[pos]
else: else:
break break
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment