From: Diane Trout Date: Fri, 20 Mar 2015 23:31:53 +0000 (-0700) Subject: Convert reads to an integer, if if it was a float in the xml. X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=30b4b74be30eccd15c6b883258bc585a575cda18 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. --- 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: