Skip to content

Commit

Permalink
HotFix try Except the query as the array is one bin too short
Browse files Browse the repository at this point in the history
  • Loading branch information
Adoni5 committed Nov 25, 2021
1 parent 725a7a1 commit e86c65f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ru/_version.py
@@ -1,4 +1,4 @@
"""version.py
Version of the read until software
"""
__version__ = "0.0.6a19"
__version__ = "0.0.6a20"
5 changes: 4 additions & 1 deletion ru/utils.py
Expand Up @@ -709,7 +709,10 @@ def query_array(start_pos, mask_dict, reverse, contig, logger):
logger.warning(f"{contig} is not in mask dict")
return 1
arr = mask_dict.get(contig)
return arr[:, int(reverse)][start_pos // 100]
try:
return arr[:, int(reverse)][start_pos // 100]
except Exception as e:
return 1


def between(pos, coords):
Expand Down

0 comments on commit e86c65f

Please sign in to comment.