-
Notifications
You must be signed in to change notification settings - Fork 124
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
min_delay
error with NEST 2.10
#411
Comments
I am having a similar problem. However, removing the delay arguments will not allow me to run the program. Config: Python 2.7.6, NEST 2.10.0, and PyNN 0.8.1 Running the same example from the doc with NEST I received the following error after running:
|
@Silmathoron : This bug was fixed via #392 which is contained in PyNN 0.8.1. Could you upgrade to 0.8.1 and try running the script again? @kristoforcarlson : I could not reproduce this error using python 2.7.9, PyNN 0.8.1 and NEST 2.10.0. |
@kristoforcarlson : Are you sure that you are using the release version 2.10 of NEST? Did you download the source from here: http://nest-simulator.org/download/ ? I have the suspicion that you might be using a developer version (e.g. the current master from github) of NEST, where the The developer versions of NEST currently also returns '2.10.0' as version number, which is a confusing bug that will be fixed soon. |
Sorry for the late reply, Traceback (most recent call last):
File "compare_aeif_cond_exp.py", line 57, in <module>
from pyNN.utility.plotting import Figure, Panel
File "/usr/lib/python3.5/site-packages/pyNN/utility/plotting.py", line 23, in <module>
from sys import maxint
ImportError: cannot import name 'maxint' Also the script raises the following warnings:
CSAConnector: libneurosim support not available in NEST.
Falling back on PyNN's default CSAConnector.
Please re-compile NEST using --with-libneurosim=PATH
somewhere/python3.5/site-packages/nest/lib/hl_api_helper.py:61: UserWarning:
DivergentConnect is deprecated and will be removed in a future version of NEST.
Please use Connect instead!
|
This is fixed in the master branch. If you're using Python 3, replace |
you can ignore these warnings unless you want to use the CSAConnector class, in which case you will get a large speedup if you build NEST with libneurosim support |
Ok, I'm good with the error and the 1st warning, thanks! |
I can comment on the 2nd one: Let's say you have a
Now you compare this to a case where you first simulate for 1ms and then for 0.5 ms. Then the thread first draws random numbers for 1ms for Poisson generator1 , then for 1ms for Poisson generator 2, and then the same for 0.5 ms first for Poisson generator 1 and then for generator 2.
So the random numbers in the first 0.5ms of PG2 are the same as in the last 0.5ms of PG1 in the first simulation. The two simulations will not yield the same spikes as in the first simulations you simulate 1.5ms with the same random seed in both cases. This is because NEST uses one random number generator per thread (for performance reasons) and draws random numbers for its sources of randomness one after the other in each time interval of This will only have an effect if you compare two simulations where you interrupt one of the two simulations, as in the example (case 1: 1.5ms simulation, case 2: simulate for 1ms, interrupt, simulate another 0.5ms). |
Ok, sorry, maybe my question was not clear: I understand why it would be a problem; what I don't understand is why it is complaining about "non integer multiple" since in the example I have
and
which should satisfy the requirement "simtime is an integer multiple of min_delay"... |
I see. If I see this correctly, the reason is to be found in line 141 of nest/simulator.py: Thus, if you specify 100 ms simulation time, pyNN will make NEST actually run for 100.ms+dt, to get all spikes that happened between 0.ms and 100.ms, including the time step of 100.ms. Otherwise NEST will only give spikes with a maximal time step of 100. ms - dt. I am currently not sure what the reason for this is. |
Ok, this is indeed the reason why this is happening, thanks! And this is indeed a problem with NEST (the need for one additional timestep to get the whole data); maybe I should raise an issue on the NEST tracker, I'll investigate this. |
@mschmidt87 I think you are correct: I believe I was using the developer's edition of NEST. I will try the release edition and see if that works. That bug in the developer's edition that returns 2.10.0 should probably be fixed as it's definitely helpful for troubleshooting issues etc. Thanks for your help. |
Config: Python 3.5, NEST 2.10.0 and PyNN 0.8.0
Trying to run the example file from the doc with NEST I ran into the following problem:
running
python ex.py nest
returnedThe error goes away without
sim.setup(timestep=0.01, min_delay=1.0)
, usingsim.setup(timestep=0.01)
only.The text was updated successfully, but these errors were encountered: