Skip to content

Commit 38130bb

Browse files
authored
Merge pull request #7984 from nden/np-dev-failure
fix np dev failure
2 parents 79f4c24 + 882ef07 commit 38130bb

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎CHANGES.rst‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ astropy.modeling
134134
- Add a ``separability_matrix`` function which returns the correlation matrix
135135
of inputs and outputs. [#7803]
136136

137+
- Fixed compatibility of ``JointFitter`` with the latest version of Numpy. [#7984]
138+
137139
astropy.nddata
138140
^^^^^^^^^^^^^^
139141

‎astropy/modeling/fitting.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ def _model_to_fit_params(self):
11321132
fparams = []
11331133
fparams.extend(self.initvals)
11341134
for model in self.models:
1135-
params = [p.flatten() for p in model.parameters]
1135+
params = model.parameters.tolist()
11361136
joint_params = self.jointparams[model]
11371137
param_metrics = model._param_metrics
11381138
for param_name in joint_params:

0 commit comments

Comments
 (0)