diff --git a/bsb/core.py b/bsb/core.py index 4abd60bb..85a2de5d 100644 --- a/bsb/core.py +++ b/bsb/core.py @@ -270,7 +270,7 @@ def run_placement(self, strategies=None, fail_fast=True, pipelines=True): if pipelines: self.run_pipelines() if strategies is None: - strategies = [*self.placement.values()] + strategies = set(self.placement.values()) strategies = PlacementStrategy.sort_deps(strategies) with self.create_job_pool(fail_fast=fail_fast) as pool: if pool.is_main(): @@ -309,7 +309,7 @@ def run_after_placement(self, hooks=None, fail_fast=None, pipelines=True): Run after placement hooks. """ if hooks is None: - hooks = self.after_placement + hooks = set(self.after_placement.values()) with self.create_job_pool(fail_fast) as pool: if pool.is_main(): pool.schedule(hooks) @@ -321,7 +321,7 @@ def run_after_connectivity(self, hooks=None, fail_fast=None, pipelines=True): Run after placement hooks. """ if hooks is None: - hooks = self.after_placement + hooks = set(self.after_connectivity.values()) with self.create_job_pool(fail_fast) as pool: if pool.is_main(): pool.schedule(hooks)