From 7a4cb5e5bf1a0f6e14521abb0869c256202c7ee2 Mon Sep 17 00:00:00 2001 From: Vibhu Jawa Date: Tue, 8 Oct 2024 17:30:33 -0700 Subject: [PATCH] Fix logging --- crossfit/op/base.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crossfit/op/base.py b/crossfit/op/base.py index d9ea28d..2e9557a 100644 --- a/crossfit/op/base.py +++ b/crossfit/op/base.py @@ -26,7 +26,10 @@ def __init__(self, pre=None, cols=False, keep_cols=None): self.pre = pre self.cols = cols self.keep_cols = keep_cols or [] - self.worker_name = getattr(self.get_worker(), "name", 0) + + @property + def worker_name(self): + return getattr(self.get_worker(), "name", 0) def setup(self): pass