Skip to content

Commit 345de78

Browse files
committed
cohort_reduction dtype
1 parent f6a0ed7 commit 345de78

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sgkit/stats/cohort_numba_fns.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def func(x: ArrayLike, cohort: ArrayLike, n: int, axis: int = -1) -> ArrayLike:
5151
x,
5252
cohort,
5353
da.empty(n, dtype=np.int8),
54+
dtype=x.dtype, # TODO: is this right? Might need to be passed in.
5455
chunks=chunks,
5556
drop_axis=replaced,
5657
new_axis=replaced,

0 commit comments

Comments
 (0)