-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
I noticed an issue that seems to be related to running the topology search in parallel. It does not happen when running sequentially. Please see the below error message and feel free to let me know if this issue is on my end:
Starting topology search
Running topology search in parallel...
Traceback (most recent call last):
File "/grid/siepel/home/staklins/miniforge3/envs/laml/bin/run_laml", line 7, in <module>
sys.exit(main())
~~~~^^
File "/grid/siepel/home/staklins/miniforge3/envs/laml/bin/run_laml.py", line 290, in main
opt_trees,max_score,opt_params = myTopoSearch.search(resolve_polytomies=resolve_polytomies,maxiter=args["maxIters"], verbose=args["verbose"], strategy=my_strategy, nreps=args['randomreps'],checkpoint_file=checkpoint_file)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/grid/siepel/home/staklins/miniforge3/envs/laml/lib/python3.13/site-packages/laml_libs/Topology_search.py", line 145, in search
trees,score,params = self.__search_one__(strategy,maxiter=maxiter,verbose=verbose,only_marked=False,checkpoint_file=checkpoint_file)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/grid/siepel/home/staklins/miniforge3/envs/laml/lib/python3.13/site-packages/laml_libs/Topology_search.py", line 196, in __search_one__
new_score,n_attempts,success = self.single_nni(curr_score,nni_iter,strategy,only_marked=only_marked)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/grid/siepel/home/staklins/miniforge3/envs/laml/lib/python3.13/site-packages/laml_libs/Topology_search_parallel.py", line 56, in single_nni
return new_score,curr_end_idx,took
^^^^^^^^^
UnboundLocalError: cannot access local variable 'new_score' where it is not associated with a value
Metadata
Metadata
Assignees
Labels
No labels