Skip to content

Commit 606614b

Browse files
authored
Merge pull request #1240 from PyAutoLabs/feature/nautilus-jax-example
fix: af.ex.Analysis use_jax=True with bare af.Model fallback
2 parents f28aa4c + f5691e1 commit 606614b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

autofit/example/analysis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def model_data_1d_from(self, instance: af.ModelInstance) -> np.ndarray:
109109
except AttributeError:
110110
pass
111111
except TypeError:
112-
model_data_1d += instance.model_data_from(xvalues=xvalues)
112+
model_data_1d += instance.model_data_from(xvalues=xvalues, xp=self._xp)
113113

114114
return model_data_1d
115115

0 commit comments

Comments
 (0)