jonescompneurolab / hnn

The Human Neocortical Neurosolver (HNN) is a software tool that gives researchers/clinicians the ability to develop/test hypotheses on circuit mechanisms underlying EEG/MEG data.
http://hnn.brown.edu
Other
81 stars 25 forks source link

Issue running HNN-Netpyne (hnn2) examples #307

Open Moham-Amin opened 3 years ago

Moham-Amin commented 3 years ago

Hello, my name is Mohamed Amin.

I’ve been working with Dr. Mohamed Sherif, and I’ve had an issue with running the examples on hnn-netpyne.

I use Windows 10, and MS-MPI.

After following instructions in the README, I first got a system error: no such file or directory. I tracked it down to netpyne’s grid.py which had the mpi command assigned as ‘mpirun’, which isn’t recognized as an MS-MPI command. I changed it to ‘mpiexec’.

The error no longer happens now, and instead the terminal stops at ‘Finished submitting jobs...’ and creates the following files in /data/trials: trials_0.err, trials_0.run, trials_0_cfg.json, trials_batch.json, trials_batchSctipt.py, trials_netParamas.py

But it does not create any plots, which is my main issue.

I also tried running the init.py in the hnn_model folder directly, which runs smoothly but still does not produce plots.

I also tried changing the cfg.duration to 10ms to make sure the issue is not very long processor time, but with the same results.

Would appreciate your help on this issue. Thank you.

Sumayya55 commented 3 years ago

Hi there, Probably your issue isn't batch-related. I wonder what trials_0.err contains?

Things to try:

Moham-Amin commented 3 years ago

Hi there, Probably your issue isn't batch-related. I wonder what trials_0.err contains?

Thank you for your help @Sumayya55

Contents of trial_0.err: trials

In cfg.py for the neocortex model example, I found the code you're referencing between triple quotations like so. I tried removing them. cfg

I also added import pylab; pylab.show() to the same model's init.py file, and changed 'Agg' to 'TkAgg' in netpynes init.py

Now, when running python -i init.py (hnn-netpyne's init.py) directly, I get the plots, which is progress! But when running python -i plot_simulate_alpha.py, I get stuck at the same spot here, with the same trials_0.err file and no plots: finished submitting jobs

salvadord commented 3 years ago

Based on the .err output the issue seems to come from " file" not defined. However, I am unable to reproduce on my Mac OS, so this might be a Windows-specific error. If you can find any more information about the error, that would be helpful. Otherwise, we will try to reproduce the error on a Windows machine and get back to you.