2023-08-22__speedtest_end-to-end_nb_worfklow_julia_only__diy_pyplotlib
2023-08-22__speedtest_end-to-end_nb_worfklow_julia_only__diy_pyplotlib¶
1
1
# ]st
# (right env (.. aka phd) already active)
@time using Nto1AdEx
0.030153 seconds (12.75 k allocations: 865.286 KiB)
using Units
@time begin
Nto1AdEx.wₑ = 15 * pS
Nto1AdEx.wᵢ = 4 * Nto1AdEx.wₑ
out = Nto1AdEx.sim(6500, 10)
end;
0.052663 seconds (13.06 k allocations: 31.574 MiB, 27.79% gc time, 12.96% compilation time)
using WithFeedback
@withfb using PythonCall
using IJMatplotlib
using PythonCall … ✔
@time pl = pyimport("pyplotlib")
3.833751 seconds (1.49 M allocations: 99.446 MiB, 0.82% gc time)
Python: <module 'pyplotlib' from 'c:\\users\\tfiers\\phd\\pkg\\pyplotlib\\src\\pyplotlib\\__init__.py'>
reload = pyimport("importlib").reload
reload(pl);
@time pl.plotsig(out.V / mV, [0, 1000], ms);
yoyoy
Python: TypeError: unsupported operand type(s) for /: 'list' and 'float'
Stacktrace:
[1] pythrow()
@ PythonCall C:\Users\tfiers\.julia\packages\PythonCall\qTEA1\src\err.jl:94
[2] errcheck
@ C:\Users\tfiers\.julia\packages\PythonCall\qTEA1\src\err.jl:10 [inlined]
[3] pycallargs(f::Py, args::Py)
@ PythonCall C:\Users\tfiers\.julia\packages\PythonCall\qTEA1\src\abstract\object.jl:210
[4] pycall(::Py, ::Vector{Float64}, ::Vararg{Any}; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ PythonCall C:\Users\tfiers\.julia\packages\PythonCall\qTEA1\src\abstract\object.jl:228
[5] pycall(::Py, ::Vector{Float64}, ::Vararg{Any})
@ PythonCall C:\Users\tfiers\.julia\packages\PythonCall\qTEA1\src\abstract\object.jl:218
[6] (::Py)(::Vector{Float64}, ::Vararg{Any}; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ PythonCall C:\Users\tfiers\.julia\packages\PythonCall\qTEA1\src\Py.jl:341
[7] (::Py)(::Vector{Float64}, ::Vararg{Any})
@ PythonCall C:\Users\tfiers\.julia\packages\PythonCall\qTEA1\src\Py.jl:341
[8] top-level scope
@ .\timing.jl:273 [inlined]
[9] top-level scope
@ .\In[12]:0
‘Restart and run all’:
~28 seconds total
First cell after ~9”
(after a few warm up restarts-and-run-alls).
Breakdown of the total:
9 sec julia/ijulia startup
~nothing my pkgs import & run :)
8 sec pycall/mpl import & setup
3 sec plotcall (before anything on screen)
~4 sec (estimate) img display