-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with hnn2 installation/setup #277
Comments
Chris from the trial output logs seems there is an mpi error: Fatal error in MPI_Init_thread: Invalid group, error stack:
You can test it using this simple script:
|
For the display issue, what is the output of A possible workaround if $DISPLAY is empty is to use set it with any value (eg. We had to add that check for displays to avoid errors when running on HPCs, but maybe it doesn't generalize well to your setup. |
My bad: my conda-environment got botched due to (presumably) polluting my I tracked the MPI issue to this:
The Warning about missing DISPLAY comes from NEURON, I think. I have a relatively new Mac, on which I haven't installed XQuartz yet. I've solved this for now by commenting out After some fiddling, I finally managed to get some plots done in How do you set the seeds? Does each GID get a unique seed, or do you set a global one? If the former, then it should be possible to set a |
Great that almost working now! re: display - curious if installing XQuartz would solve the issue or not. re: remain in the background - maybe related to the DISPLAY issue as well? are you running with 'python -i'? Btw, I think for the plots you can set the argument 'saveFig=True' so they generate png files. re: seeds - there is a global seed parameter, but a different seed is then generated for each gid. As you say it might be possible but not easy, since I believe we might be using different RNG functions. However, in the past I did reproduce almost exactly the hnn plots by feeding in the same spike times for each external feed -- see https://drive.google.com/file/d/1K1frR-zAzk0yx74S9N0Qrhw-nzUMqhtj/view?usp=sharing. |
From Chris Bailey @cjayb:
"Hi Salva
Re. mpi: I just meant that your GH page doesn’t mention it as a dependency
Re. extgauss note that it’s sort of a relic, not included in any of the “official” HNN models (we decided to omit it for now in the new hnn-core API). The param-file you’re using in the example sets weights to zero.
I upgraded NetPyNE to 0.9.9.1 from pip, and pulled the latest updates to the hnn2 branch off GH. There’s something fishy about how netpyne uses Matplotlib on macOS: import netpyne leads to
Warning: no DISPLAY environment variable.
--No graphics will be displayed.
I traced this to netpyne.init.py. As you know, the macOS and Qt backends don’t require an X subsystem, so it’s a bit odd to see this behaviour. Any ideas?
The spike histogram plots still open up in Bokeh, but look reasonable (meaning external drives are doing their thing). However, simulate_trials seems to be creating an empty simulation (“Connections: 0”), which obviously doesn’t do much (see snippet of output below and trials-folder attached). Given that you get the code to work, the problem must be with my installation. I think we should probably move such discussions to GH instead of polluting inboxes ;)
On the bright side, iplotRaster() now runs without error (though no plot is produced). You win some…
/Chris
Loading custom mechanism files from /Users/au210321/src/git/hnn2/hnn_models/hnn_neocortex/x86_64/.libs/libnrnmech.so
Start time: 2021-03-04 10:22:10.531743
Creating network of 24 cell populations on 1 hosts...
Number of cells on node 0: 1354
Done; cell creation time = 0.83 s.
Gathering data...
Done; gather time = 0.22 s.
Analyzing...
Cells: 1354
Connections: 0 (0.00 per cell)
Plotting 3D cell shape ...
Saving batch to /Users/au210321/src/git/hnn2/hnn_models/hnn_neocortex/data/trials/trials_batch.json ...
(0,) (0,)
('hnn_params', 'prng_seedcore') = 0
Saving simConfig to /Users/au210321/src/git/hnn2/hnn_models/hnn_neocortex/data/trials/trials_0_cfg.json ...
Running job /Users/au210321/src/git/hnn2/hnn_models/hnn_neocortex/data/trials/trials_0
mpirun -n 2 nrniv -python -mpi /Users/au210321/src/git/hnn2/hnn_models/hnn_neocortex/init.py simConfig=/Users/au210321/src/git/hnn2/hnn_models/hnn_neocortex/data/trials/trials_0_cfg.json netParams=/Users/au210321/src/git/hnn2/hnn_models/hnn_neocortex/data/trials/trials_netParams.py"
The text was updated successfully, but these errors were encountered: