From f4042866f20ed3b1acf055f18f60e1283deafe09 Mon Sep 17 00:00:00 2001 From: William Patton Date: Tue, 27 Aug 2024 09:59:46 -0400 Subject: [PATCH] remove self if self in args. Otherwise daisy fails to call a method as a start worker function --- daisy/task.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daisy/task.py b/daisy/task.py index 280f39ae..3eb87dca 100644 --- a/daisy/task.py +++ b/daisy/task.py @@ -166,6 +166,8 @@ def __init__( self.init_callback_fn = self._default_init args = getfullargspec(process_function).args + if 'self' in args: + args.remove('self') if len(args) == 0: # spawn function self.spawn_worker_function = process_function