mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-06 01:48:12 +08:00
Return an empty matrix if no rows or columns are selected (#1501)
Return an empty matrix if no rows or columns are selected Fixes #1499
This commit is contained in:
@@ -20,7 +20,7 @@ def pack_selector_from_mask(boolarray):
|
||||
def pack_selector_from_indices(selector):
|
||||
|
||||
if len(selector) == 0:
|
||||
return slice(None)
|
||||
return None
|
||||
|
||||
result = []
|
||||
current = slice(selector[0], selector[0])
|
||||
|
||||
Reference in New Issue
Block a user