Commit a277d5e
Fix remaining PythonCall type conversions
Convert all Python statistics fields (nfev, njev, nit, function_calls,
iterations) to Julia Int using pyconvert instead of direct Int() constructor.
Also convert u_root from Python Float to Julia Float64 in SciPyRootScalar.
Fixes:
- MethodError: Cannot convert PythonCall.Py to Int64 in NLStats
- MethodError: no method matching ndims(::PythonCall.Py) in build_solution
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 6c17a16 commit a277d5e
1 file changed
+12
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
162 | 167 | | |
163 | | - | |
| 168 | + | |
164 | 169 | | |
165 | 170 | | |
166 | 171 | | |
167 | | - | |
| 172 | + | |
168 | 173 | | |
169 | 174 | | |
170 | 175 | | |
| |||
199 | 204 | | |
200 | 205 | | |
201 | 206 | | |
202 | | - | |
| 207 | + | |
203 | 208 | | |
204 | | - | |
205 | 209 | | |
206 | 210 | | |
207 | 211 | | |
208 | | - | |
| 212 | + | |
209 | 213 | | |
210 | | - | |
211 | 214 | | |
212 | 215 | | |
213 | 216 | | |
| |||
234 | 237 | | |
235 | 238 | | |
236 | 239 | | |
237 | | - | |
| 240 | + | |
238 | 241 | | |
239 | 242 | | |
240 | 243 | | |
241 | 244 | | |
242 | | - | |
| 245 | + | |
243 | 246 | | |
244 | | - | |
245 | 247 | | |
246 | 248 | | |
247 | 249 | | |
248 | | - | |
| 250 | + | |
249 | 251 | | |
250 | | - | |
251 | 252 | | |
252 | 253 | | |
253 | 254 | | |
| |||
0 commit comments