Skip to content

Commit fe90034

Browse files
committed
Fix linting
1 parent 5bf7913 commit fe90034

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,4 +156,4 @@ Thumbs.db
156156
# Common editor files
157157
*~
158158
*.swp
159-
_scratch/
159+
_scratch/

src/dask_ngs/_index.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
COMPRESSED_POSITION_SHIFT = 16
1111
UNCOMPRESSED_POSITION_MASK = 0xFFFF
1212
BLOCKSIZE = 65536
13+
BAM_PSEUDO_BIN = 37450
1314

1415

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

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

0 commit comments

Comments
 (0)