File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -674,7 +674,9 @@ def show(
674
674
# the index and randomise colours for it
675
675
676
676
# add fake column for limiting the amount of different colors
677
- sdata .table .obs ["fake" ] = np .random .randint (0 , N_DISTINCT_FOR_RANDOM , sdata .table .obs .shape [0 ])
677
+ sdata .table .obs ["fake" ] = np .random .randint (
678
+ 0 , N_DISTINCT_FOR_RANDOM , sdata .table .obs .shape [0 ]
679
+ )
678
680
679
681
# has a table, so it has a region key
680
682
region_key = _get_region_key (sdata )
@@ -713,7 +715,7 @@ def show(
713
715
}
714
716
)
715
717
716
- tmp_table ["fake" ] = np .random .randint (0 , N_DISTINCT_FOR_RANDOM , sdata . table . obs . shape [ 0 ] )
718
+ tmp_table ["fake" ] = np .random .randint (0 , N_DISTINCT_FOR_RANDOM , len ( tmp_table ) )
717
719
distinct_cells = max (list (cell_ids_per_label .values ()))
718
720
719
721
if sdata .table is not None :
You can’t perform that action at this time.
0 commit comments