if read_loc is None and last_read_pos: condition cannot distinguish whether last_read_pos is 0 or None and this leads to the UnboundLocalError: local variable 'start' referenced before assignment exception.
Thanks for the fix! Unfortunately I have not had the bandwidth to maintain this project as much as I would like. It's strange that the Travis CI builds aren't getting triggered anymore.
Hi,
I really like the project, it's very unfortunate that it's not maintained anymore.
In the
_report_read_positions(read, counter)
function in io.bam.py, if the the following loop:proceeds with the following sequence:
if read_loc is None and last_read_pos:
condition cannot distinguish whether last_read_pos is 0 or None and this leads to theUnboundLocalError: local variable 'start' referenced before assignment
exception.This PR fixes that.
Fixes #83