Skip to content

Commit

Permalink
Merge pull request #309 from labgem/fix_recursion_limit_in_draw_spot
Browse files Browse the repository at this point in the history
Increase recursion limit in draw spot to prevent error
  • Loading branch information
axbazin authored Jan 9, 2025
2 parents e88cf0a + 3bf46cc commit 0f55d74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ppanggolin/figures/draw_spot.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def row_order_gene_lists(gene_lists: list) -> list:

if len(gene_lists) > sys.getrecursionlimit():
sys.setrecursionlimit(
len(gene_lists)
len(gene_lists) * 2 - 1
) # we need the recursion limit to be higher than the number of regions.

for index, genelist in enumerate([genelist[0] for genelist in gene_lists]):
Expand Down

0 comments on commit 0f55d74

Please sign in to comment.