Skip to content

Commit

Permalink
use list to guarantee order
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Sep 9, 2024
1 parent 63201d1 commit c8e2812
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -359,12 +359,9 @@ def extract_data(self) -> None:
"""
with BufferDatabase() as db:
db.start_new_extraction()
recording_placements = set(
recording_placements = list(
FecDataView.iterate_placements_by_vertex_type(
AbstractReceiveBuffersToHost))
recording_placements.update(
FecDataView.iterate_placements_by_vertex_type(
AbstractReceiveRegionsToHost))
(AbstractReceiveBuffersToHost, AbstractReceiveRegionsToHost)))
if self._java_caller is not None:
logger.info("Starting buffer extraction using Java")
self._java_caller.set_placements(recording_placements)
Expand All @@ -375,7 +372,7 @@ def extract_data(self) -> None:
self.__python_extract_no_monitors(recording_placements)

def __python_extract_with_monitors(
self, recording_placements: Set[Placement]):
self, recording_placements: List[Placement]):
"""
:param list(~pacman.model.placements.Placement) recording_placements:
Where to get the data from.
Expand All @@ -394,7 +391,7 @@ def __python_extract_with_monitors(
self.__python_extract_no_monitors(recording_placements)

def __python_extract_no_monitors(
self, recording_placements: Set[Placement]):
self, recording_placements: List[Placement]):
"""
:param list(~pacman.model.placements.Placement) recording_placements:
Where to get the data from.
Expand Down

0 comments on commit c8e2812

Please sign in to comment.