From a5259676d42e35d97d84c50d588afcf6fef85521 Mon Sep 17 00:00:00 2001 From: Rayan Chikhi <rayan.chikhi@univ-lille1.fr> Date: Fri, 8 May 2020 11:05:45 -0400 Subject: [PATCH] allow deeper recursions and fixed min_mol_idx init --- deconvolution/main/evaluate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deconvolution/main/evaluate.py b/deconvolution/main/evaluate.py index 9589564..8be7781 100755 --- a/deconvolution/main/evaluate.py +++ b/deconvolution/main/evaluate.py @@ -2,6 +2,7 @@ import sys +sys.setrecursionlimit(10000) import argparse from termcolor import colored import networkx as nx @@ -318,7 +319,7 @@ def recursive_longest_path(current_node, current_molecule, next_nodes, longest_p longest = 0 longest_next = None - min_mol_idx = current_molecule + 10000 + min_mol_idx = float('inf') # Recursively compute the longest path for mol_idx, node in next_nodes[current_node][current_molecule]: size, _, _ = recursive_longest_path(node, mol_idx, next_nodes, longest_paths) -- GitLab