Skip to content

Commit

Permalink
fixed python3 numpy array behavior (#42)
Browse files Browse the repository at this point in the history
* numpy arrays on 3.5 won't take boolean index anymore

* matplotlib 3.3 support over
  • Loading branch information
andras86 authored Jan 19, 2017
1 parent 95ec0aa commit 9de4a0f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ sudo: false
language: python
python:
- '2.7'
- '3.3'
- '3.4'
- '3.5'
env: COMPILER_NAME=gcc CXX=g++-5 CC=gcc-5
Expand Down
2 changes: 1 addition & 1 deletion hlatyper.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ def calculate_coverage(alignment, features, alleles_to_plot, features_used):
pairing_info.loc[reads][allele]):
if not i_pairing:
continue # or i_pairing = 4. Happens if one end maps to the allele but a different allele has a full paired hit.
coverage[bool(i_mismatches)][i_pairing-1][i_hitcount-1][i_pos-1:i_pos-1+i_read_length] += 1
coverage[int(bool(i_mismatches))][i_pairing-1][i_hitcount-1][i_pos-1:i_pos-1+i_read_length] += 1

coverage_matrices.append((allele, coverage))
return coverage_matrices
Expand Down

0 comments on commit 9de4a0f

Please sign in to comment.