From 8711f2efcc7200e7fd25a2b0524b6342fd5297b1 Mon Sep 17 00:00:00 2001 From: mcDandy Date: Mon, 7 Sep 2026 23:08:50 +0200 Subject: [PATCH] fix probably old standing CFG not found error --- more_math/GuiderMathNode.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/more_math/GuiderMathNode.py b/more_math/GuiderMathNode.py index ee5213d..ecffed3 100644 --- a/more_math/GuiderMathNode.py +++ b/more_math/GuiderMathNode.py @@ -104,6 +104,21 @@ class MathGuider: return None + @property + def cfg(self): + """Delegate cfg to the primary guider.""" + for v in self.V.values(): + if v is not None and hasattr(v, "cfg"): + return v.cfg + return 1.0 # Default value if no guider has cfg + + @cfg.setter + def cfg(self, value): + """Set cfg on all guiders that support it.""" + for v in self.V.values(): + if v is not None and hasattr(v, "cfg"): + v.cfg = value + def __call__(self, x, sigma, model_options={}, seed=None): lazy_g_results = {}