File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,8 @@ def __getattr__(cls, name):
75
75
'sphinx.ext.viewcode' ,
76
76
'sphinx.ext.napoleon' ,
77
77
'sphinx_gallery.gen_gallery' ,
78
- 'myst_parser'
78
+ 'myst_parser' ,
79
+ "sphinxcontrib.jquery" ,
79
80
]
80
81
81
82
autosummary_generate = True
Original file line number Diff line number Diff line change @@ -93,15 +93,15 @@ def phi(alpha1):
93
93
fc [0 ] += 1
94
94
alpha10 = nx .from_numpy (alpha1 )
95
95
fval = f (xk0 + alpha10 * pk0 , * args )
96
- if type (fval ) is float :
96
+ if isinstance (fval , float ) :
97
97
# prevent bug from nx.to_numpy that can look for .cpu or .gpu
98
98
return fval
99
99
else :
100
100
return nx .to_numpy (fval )
101
101
102
102
if old_fval is None :
103
103
phi0 = phi (0. )
104
- elif type (old_fval ) is float :
104
+ elif isinstance (old_fval , float ) :
105
105
# prevent bug from nx.to_numpy that can look for .cpu or .gpu
106
106
phi0 = old_fval
107
107
else :
You can’t perform that action at this time.
0 commit comments