fix probably old standing CFG not found error

This commit is contained in:
mcDandy
2026-09-07 23:08:50 +02:00
parent f249c445e7
commit 8711f2efcc
+15
View File
@@ -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 = {}