aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPjotr Prins2015-04-13 08:14:43 +0000
committerPjotr Prins2015-04-13 08:14:43 +0000
commit102523493e2f8a7660c63f117f1d8dfd009eff02 (patch)
treebb7184bbe45338c6475497ab0734083aa8ab226f
parent1823434ff8b54df0bd8ce1d7d19a37d74e850dd5 (diff)
downloadgenenetwork2-102523493e2f8a7660c63f117f1d8dfd009eff02.tar.gz
Improved assertion message
-rw-r--r--wqflask/wqflask/my_pylmm/pyLMM/tsvreader.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/wqflask/wqflask/my_pylmm/pyLMM/tsvreader.py b/wqflask/wqflask/my_pylmm/pyLMM/tsvreader.py
index b4027fa3..b24ffe8f 100644
--- a/wqflask/wqflask/my_pylmm/pyLMM/tsvreader.py
+++ b/wqflask/wqflask/my_pylmm/pyLMM/tsvreader.py
@@ -56,7 +56,8 @@ def geno(fn):
print fn
with open(fn,'r') as tsvin:
- assert(tsvin.readline().strip() == "# Genotype format version 1.0")
+ line = tsvin.readline().strip()
+ assert line == "# Genotype format version 1.0", line
tsvin.readline()
tsvin.readline()
tsvin.readline()