Skip to content

Commit 717aaa0

Browse files
committed
Quick fix for newer scipy with Series.nonzero error
1 parent 911d79c commit 717aaa0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sccellfie/reports/summary.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ def generate_summary_by_group(adata, data_matrix, feature_names, group_by, agg_f
206206
# Create mask for this group (and tissue if applicable)
207207
group_mask = adata.obs[group_by] == group
208208
combined_mask = group_mask & tissue_mask
209+
combined_mask = np.asarray(combined_mask, dtype=bool)
209210

210211
# Skip if no cells match
211212
if np.sum(combined_mask) == 0:

0 commit comments

Comments
 (0)