From 29f4b56c3fa37b80763d9c2a355e517d4e2c2a4f Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Wed, 2 Sep 2026 18:30:45 -0400 Subject: [PATCH] test(graphical): read truncated-message limits from attributes after PyAutoFit#1559 (#91 follow-up) --- scripts/graphical/analytic_autofit.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/graphical/analytic_autofit.py b/scripts/graphical/analytic_autofit.py index 5b64cca..7a16757 100644 --- a/scripts/graphical/analytic_autofit.py +++ b/scripts/graphical/analytic_autofit.py @@ -166,7 +166,8 @@ def read_ep_posteriors(result, priors): base = message.base_message out[name] = (float(base.mean), float(base.sigma), "log-space base message (moments of log sigma)") elif isinstance(message, TruncatedNormalMessage): - loc, scale, lower, upper = (float(p) for p in message.parameters) + loc, scale = (float(p) for p in message.parameters) + lower, upper = float(message.lower_limit), float(message.upper_limit) a, b = (lower - loc) / scale, (upper - loc) / scale out[name] = ( float(truncnorm.mean(a, b, loc=loc, scale=scale)),