From f5691e15588b68e5ebab8527be38f74997739122 Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Wed, 29 Apr 2026 20:29:16 +0100 Subject: [PATCH] fix: pass xp to bare-Model fallback in af.ex.Analysis.model_data_1d_from Co-Authored-By: Claude Opus 4.7 (1M context) --- autofit/example/analysis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autofit/example/analysis.py b/autofit/example/analysis.py index 677e2f08c..8ed8a5ffd 100644 --- a/autofit/example/analysis.py +++ b/autofit/example/analysis.py @@ -109,7 +109,7 @@ def model_data_1d_from(self, instance: af.ModelInstance) -> np.ndarray: except AttributeError: pass except TypeError: - model_data_1d += instance.model_data_from(xvalues=xvalues) + model_data_1d += instance.model_data_from(xvalues=xvalues, xp=self._xp) return model_data_1d