Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
nvictus committed Jul 30, 2023
1 parent 5bf7913 commit fe90034
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,4 @@ Thumbs.db
# Common editor files
*~
*.swp
_scratch/
_scratch/
3 changes: 2 additions & 1 deletion src/dask_ngs/_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
COMPRESSED_POSITION_SHIFT = 16
UNCOMPRESSED_POSITION_MASK = 0xFFFF
BLOCKSIZE = 65536
BAM_PSEUDO_BIN = 37450


def read_bai(path: str):
Expand All @@ -36,7 +37,7 @@ def read_bai(path: str):
# bin number
bin_id = int.from_bytes(f.read(4), **int_kwargs)

if bin_id == 37450:
if bin_id == BAM_PSEUDO_BIN:
# This is an entry that describes the "pseudo-bin" for the
# reference, using the same byte layout as normal bins but
# interpreted differently.
Expand Down

0 comments on commit fe90034

Please sign in to comment.