|
250 | 250 | "name": "stdout", |
251 | 251 | "output_type": "stream", |
252 | 252 | "text": [ |
253 | | - " 6.292222 seconds (3.40 M allocations: 175.176 MiB, 1.23% gc time)\n" |
| 253 | + " 8.913833 seconds (3.40 M allocations: 175.250 MiB, 1.09% gc time)\n" |
254 | 254 | ] |
255 | 255 | } |
256 | 256 | ], |
|
313 | 313 | }, |
314 | 314 | "metadata": {}, |
315 | 315 | "output_type": "display_data" |
316 | | - }, |
317 | | - { |
318 | | - "name": "stderr", |
319 | | - "output_type": "stream", |
320 | | - "text": [ |
321 | | - "┌ Warning: The default `strides(a::AbstractArray)` implementation is deprecated for general arrays.\n", |
322 | | - "│ Specialize `strides(::LinearAlgebra.Adjoint)` if `LinearAlgebra.Adjoint` indeed uses a strided representation in memory.\n", |
323 | | - "│ Warning: inappropriately implementing this method for an array type that does not use strided\n", |
324 | | - "│ storage may lead to incorrect results or segfaults.\n", |
325 | | - "│ caller = stride at abstractarray.jl:350 [inlined]\n", |
326 | | - "└ @ Core ./abstractarray.jl:350\n", |
327 | | - "┌ Warning: The default `strides(a::AbstractArray)` implementation is deprecated for general arrays.\n", |
328 | | - "│ Specialize `strides(::LinearAlgebra.Adjoint)` if `LinearAlgebra.Adjoint` indeed uses a strided representation in memory.\n", |
329 | | - "│ Warning: inappropriately implementing this method for an array type that does not use strided\n", |
330 | | - "│ storage may lead to incorrect results or segfaults.\n", |
331 | | - "│ caller = stride at abstractarray.jl:350 [inlined]\n", |
332 | | - "└ @ Core ./abstractarray.jl:350\n" |
333 | | - ] |
334 | 316 | } |
335 | 317 | ], |
336 | 318 | "source": [ |
|
340 | 322 | "fig, ax = plt.subplots(rows, div(ns, rows), figsize=(10,4rows))\n", |
341 | 323 | "idx = reshape(1:rows*div(ns, rows), div(ns, rows), rows)'\n", |
342 | 324 | "for (i, axi) in enumerate(ax)\n", |
343 | | - " csg = data[:,idx[i],:]'\n", |
| 325 | + " csg = Array(data[:,idx[i],:]')\n", |
344 | 326 | " axi[:imshow](csg, extent=[rec_x[1], rec_x[end], t[end], t[1]],\n", |
345 | 327 | " vmin=-0.5maximum(abs.(csg)), vmax=0.5maximum(abs.(csg)), aspect=\"auto\", cmap=\"gray\", interpolation=\"none\")\n", |
346 | 328 | " axi[:scatter](src_x[idx[i]], t[1], color=\"#d62728\", marker=\"*\", s=200, clip_on=false, zorder=100)\n", |
|
373 | 355 | "name": "stdout", |
374 | 356 | "output_type": "stream", |
375 | 357 | "text": [ |
376 | | - " 3.113558 seconds (2.20 M allocations: 121.930 MiB, 2.04% gc time)\n" |
| 358 | + " 4.919327 seconds (2.19 M allocations: 121.769 MiB, 2.23% gc time)\n" |
377 | 359 | ] |
378 | 360 | } |
379 | 361 | ], |
|
450 | 432 | "name": "stdout", |
451 | 433 | "output_type": "stream", |
452 | 434 | "text": [ |
453 | | - " 7.793007 seconds (4.57 M allocations: 695.879 MiB, 3.84% gc time)\n" |
| 435 | + " 12.370639 seconds (4.57 M allocations: 696.037 MiB, 3.49% gc time)\n" |
454 | 436 | ] |
455 | 437 | } |
456 | 438 | ], |
|
468 | 450 | "name": "stdout", |
469 | 451 | "output_type": "stream", |
470 | 452 | "text": [ |
471 | | - " 14.428752 seconds (10.57 M allocations: 1.205 GiB, 3.44% gc time)\n" |
| 453 | + " 19.144294 seconds (10.56 M allocations: 1.205 GiB, 3.02% gc time)\n" |
472 | 454 | ] |
473 | 455 | } |
474 | 456 | ], |
|
486 | 468 | "name": "stdout", |
487 | 469 | "output_type": "stream", |
488 | 470 | "text": [ |
489 | | - " 5.660292 seconds (3.32 M allocations: 632.830 MiB, 3.08% gc time)\n" |
| 471 | + " 8.563079 seconds (3.32 M allocations: 632.829 MiB, 2.72% gc time)\n" |
490 | 472 | ] |
491 | 473 | } |
492 | 474 | ], |
|
515 | 497 | "name": "stdout", |
516 | 498 | "output_type": "stream", |
517 | 499 | "text": [ |
518 | | - " 6.294866 seconds (4.54 M allocations: 723.020 MiB, 3.64% gc time)\n" |
| 500 | + " 9.742759 seconds (4.54 M allocations: 723.040 MiB, 3.11% gc time)\n" |
519 | 501 | ] |
520 | 502 | } |
521 | 503 | ], |
|
0 commit comments