hnn
hnn copied to clipboard
simulation log output lags behind terminal output
When I run the simulation, I see the following:
see also #300 . I am wondering if it might be a simpler design choice to ask users to look at the terminal output ?
This should only happen when falling back to JoblibBackend
with 1 core because mpi4py
can't be loaded. While it would be a useful feature to be able to run HNN GUI without MPI, I think this involves an enhancement, not a bug.
If you'd like to support this, two options are:
- Run Joblib backend in a separate process, like
mpi_child.py
- Modify
_simulate_single_trial
to support acell_parallel
option. The_PC.psolve()
function must be avoided because it will take over all threads in the python process (slows down GUI threads too). Note that otherParallelContext
functions are not problematic, justpsolve
.if cell_parallel: _PC.psolve(h.tstop) else: # this needs more to work correctly, check out NEURON docs _CVODE.solve(h.tstop)
Thanks for the suggestion. I'll look into the MPI installation and try it again soon.
Can confirm that this doesn't occur with a functioning MPI install: