Commit e5abc17
image: Avoid excess NumPy array refcount twiddling.
A new array is always supplied, so just check that it is the right
type/shape.
Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>1 parent 89be34e commit e5abc17
1 file changed
+13
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | | - | |
156 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
157 | 166 | | |
158 | 167 | | |
159 | 168 | | |
| |||
335 | 344 | | |
336 | 345 | | |
337 | 346 | | |
338 | | - | |
| 347 | + | |
339 | 348 | | |
340 | 349 | | |
341 | 350 | | |
342 | | - | |
343 | 351 | | |
344 | 352 | | |
345 | 353 | | |
| |||
0 commit comments