diff --git a/beat/backend/python/algorithm.py b/beat/backend/python/algorithm.py index 971d957f0eb45b90985d4b0de1ce0dc616517d60..7cda28ec858f3d79857e75f6043df8eaa9624547 100644 --- a/beat/backend/python/algorithm.py +++ b/beat/backend/python/algorithm.py @@ -204,7 +204,7 @@ class Runner(object): # The method is optional if hasattr(self.obj, 'prepare'): - if self.algorithm.is_autonomous: + if self.algorithm.type in [Algorithm.AUTONOMOUS, Algorithm.LOOP_USER]: self.prepared = loader.run(self.obj, 'prepare', self.exc, data_loaders.secondaries()) else: self.prepared = loader.run(self.obj, 'prepare', self.exc, data_loaders)