From c8f994756942e1c2371d0919e9f0e64c2172145c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Dutheillet-Lamonth=C3=A9zie?= Date: Tue, 6 Jun 2023 12:44:19 +0200 Subject: [PATCH] #386: fix error in brute BruteForceAlgorithm class --- src/lbaf/Execution/lbsBruteForceAlgorithm.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lbaf/Execution/lbsBruteForceAlgorithm.py b/src/lbaf/Execution/lbsBruteForceAlgorithm.py index 00e5e24d9..2ee926268 100644 --- a/src/lbaf/Execution/lbsBruteForceAlgorithm.py +++ b/src/lbaf/Execution/lbsBruteForceAlgorithm.py @@ -4,7 +4,6 @@ from logging import Logger from .lbsAlgorithmBase import AlgorithmBase -from ..Model.lbsPhase import Phase from ..Utils.exception_handler import exc_handler @@ -75,7 +74,7 @@ def execute(self, p_id: int, phases: list, distributions: dict, statistics: dict objects = [] # Iterate over ranks - phase_ranks = phases.get_ranks() + phase_ranks = phases[0].get_ranks() for rank in phase_ranks: for o in rank.get_objects(): entry = {