From ee0007d8d3b1b76f4e4c903e9cd2401b4a5d5d60 Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Thu, 26 Nov 2026 18:28:32 +0000 Subject: [PATCH] fix: adopt_backend log line no longer claims the factors' setups disagree when the graph sets the backend Refs PyAutoLabs/autolens_workspace#698 Co-Authored-By: Claude Opus 5.5 --- autogalaxy/analysis/analysis/setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/autogalaxy/analysis/analysis/setup.py b/autogalaxy/analysis/analysis/setup.py index f38d7db8..9d438c09 100644 --- a/autogalaxy/analysis/analysis/setup.py +++ b/autogalaxy/analysis/analysis/setup.py @@ -71,7 +71,8 @@ def setup_is_default(self) -> bool: def adopt_backend(self, use_jax: bool): """ Drop the default setup and run on the backend `use_jax` a `FactorGraphModel` chose for its factors - (`af.Analysis.adopt_backend`), because the factors' default setups disagree. + (`af.Analysis.adopt_backend`), because the factors' default setups disagree or the graph's own + `use_jax` (or a factor the user configured) sets the backend. The analysis moves to the manual opt-out path, as if constructed with `use_jax=use_jax`: the setup input and resolved setup are cleared (no `files/setup.json` is written), the backend is `use_jax` @@ -107,7 +108,7 @@ def adopt_backend(self, use_jax: bool): ) logger.info( f"Compute setup: not set (the factor graph runs every factor left on the default setup on " - f"{backend}, as their default setups disagree{chose}; pass the same setup= to every " + f"{backend}, so all its factors share one backend{chose}; pass the same setup= to every " f"factor to choose one)" )