From 30b4b74be30eccd15c6b883258bc585a575cda18 Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Fri, 20 Mar 2015 16:31:53 -0700 Subject: [PATCH] Convert reads to an integer, if if it was a float in the xml. Some versions of the pipeline include a trailing .0 for read length, this made python 3s parser unhappy. so convert to a float and then truncate to work around the type issue. --- htsworkflow/pipelines/eland.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htsworkflow/pipelines/eland.py b/htsworkflow/pipelines/eland.py index 3298ae4..39030fa 100644 --- a/htsworkflow/pipelines/eland.py +++ b/htsworkflow/pipelines/eland.py @@ -620,7 +620,7 @@ class SequenceLane(ResultLane): elif tag == END.lower(): self.end = int(element.text) elif tag == READS.lower(): - self._reads = int(element.text) + self._reads = int(float(element.text)) elif tag == SequenceLane.SEQUENCE_TYPE.lower(): self.sequence_type = lookup_sequence_type.get(element.text, None) else: -- 2.30.2