Skip to content

Commit f772f33

Browse files
committed
ENH: Import Bounds from scipy.optimize
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
1 parent 681016f commit f772f33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nifreeze/model/gpr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
import numpy as np
3131
from scipy import optimize
32-
from scipy.optimize._minimize import Bounds
32+
from scipy.optimize import Bounds
3333
from sklearn.gaussian_process import GaussianProcessRegressor
3434
from sklearn.gaussian_process.kernels import (
3535
Hyperparameter,

0 commit comments

Comments
 (0)