Skip to content

Commit

Permalink
ENH: Import Bounds from scipy.optimize
Browse files Browse the repository at this point in the history
Import `Bounds` from `scipy.optimize`.

Fixes:
```
src/nifreeze/model/gpr.py:32: error:
 Module "scipy.optimize._minimize" does not explicitly export attribute "Bounds"  [attr-defined]
```

raised for example in:
https://github.com/nipreps/nifreeze/actions/runs/12437972140/job/34728973936#step:8:70
  • Loading branch information
jhlegarreta committed Dec 21, 2024
1 parent 50c3da0 commit 27be24b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nifreeze/model/gpr.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

import numpy as np
from scipy import optimize
from scipy.optimize._minimize import Bounds
from scipy.optimize import Bounds
from sklearn.gaussian_process import GaussianProcessRegressor
from sklearn.gaussian_process.kernels import (
Hyperparameter,
Expand Down

0 comments on commit 27be24b

Please sign in to comment.