Skip to content

Commit

Permalink
Python library bug fix - v1.2.1 (#160)
Browse files Browse the repository at this point in the history
* Fixed a bug with start coordinate conversion leading to empty values in python library writer class.
* Updated python library NEWS.
  • Loading branch information
javh authored Oct 5, 2018
1 parent 5c6963d commit 26e0cf9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions lang/python/NEWS.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Version 1.2.1: October 5, 2018
--------------------------------------------------------------------------------

+ Fixed a bug in the python reference library causing start coordinate values
to be empty in some cases when writing data.

Version 1.2.0: August 17, 2018
--------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion lang/python/airr/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def write(self, row):
# Adjust coordinates
if f.endswith('_start') and self.base == 1:
try:
row[f] = row[f] + 1
row[f] = self.schema.to_int(row[f]) + 1
except TypeError:
row[f] = None

Expand Down

0 comments on commit 26e0cf9

Please sign in to comment.