Skip to content

Commit

Permalink
increase recursion limit to prevent recursion error in rgp-spot dendr…
Browse files Browse the repository at this point in the history
…ogram
  • Loading branch information
JeanMainguy committed Jan 9, 2025
1 parent e88cf0a commit 4953594
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ppanggolin/figures/draw_spot.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,9 @@ def row_order_gene_lists(gene_lists: list) -> list:
return gene_lists

if len(gene_lists) > sys.getrecursionlimit():
print("NO changin...")
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 4953594

Please sign in to comment.