Closed Manalorca closed 9 months ago
Hello Matthieu,
Thanks for the issue. Actually the method find_best_candidate
is deprecated. I think I will remove it from the pipeline.
Second, I've changed the way the list of best candidates are managed in the pipeline. The method find_phasing_results
should not return anything but rather modify the self.phasing_results attribute
.
So for the time being, you can now use the combination of analyze_phasing_results()
/ select_best_candidates()
. The latter can accept either a list best_runs of the run numbers or nb_of_best_sorted_runs (int)
the number of best runs you want to consider if you had run the analyze_phasing_results()
beforehand.
Tell me if it works like that, if not I will take care of it.
Hi Clement,
I think that there is an issue in the methods find_best_candidates/find_phasing_results of the class BcdiPipeline. In the method find_best_candidates, there is a call of the method find_phasing_results :
line 672 : self.phasing_results = self.find_phasing_results(self.phasing_results)
The signature of the method self.find_phasing_results is find_phasing_results(self) -> list .
So first of all, I think the call line 672 should be :
line 672 : self.phasing_results = self.find_phasing_results()
Then, there is no return in the method find_phasing_results :
So I think a return should be added :
Have a nice day.
Matthieu