Skip to content

Commit 26e0cf9

Browse files
authored
Python library bug fix - v1.2.1 (#160)
* Fixed a bug with start coordinate conversion leading to empty values in python library writer class. * Updated python library NEWS.
1 parent 5c6963d commit 26e0cf9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

lang/python/NEWS.rst

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Version 1.2.1: October 5, 2018
2+
--------------------------------------------------------------------------------
3+
4+
+ Fixed a bug in the python reference library causing start coordinate values
5+
to be empty in some cases when writing data.
6+
17
Version 1.2.0: August 17, 2018
28
--------------------------------------------------------------------------------
39

lang/python/airr/io.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def write(self, row):
218218
# Adjust coordinates
219219
if f.endswith('_start') and self.base == 1:
220220
try:
221-
row[f] = row[f] + 1
221+
row[f] = self.schema.to_int(row[f]) + 1
222222
except TypeError:
223223
row[f] = None
224224

0 commit comments

Comments
 (0)