Skip to content

Commit f1c3e44

Browse files
committed
minor fix datatype
1 parent f600013 commit f1c3e44

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

seqchromloader/utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
import pyBigWig
1212
from Bio import motifs
1313
from pyfaidx import Fasta
14-
from multiprocessing import Pool
15-
from pybedtools import Interval, BedTool
14+
from pybedtools import BedTool
1615
from pybedtools.helpers import chromsizes
1716

1817
from seqchromloader import config
@@ -79,7 +78,7 @@ def values(self, chrom, start, end, missing=0):
7978
start = max(0, start)
8079
end = min(arr.shape[0], end)
8180

82-
return arr[start:end] # no copy
81+
return arr[start:end].astype(np.float32) # no copy
8382

8483
def chroms(self):
8584
return self._chroms

0 commit comments

Comments
 (0)