TEST add-nest-example-scripts#802
TEST add-nest-example-scripts#802HarshKhilawala wants to merge 8 commits intoNeuralEnsemble:masterfrom
Conversation
|
@apdavison Added another script as per this: Link |
apdavison
left a comment
There was a problem hiding this comment.
The comments from #801 also apply to the additional examples here:
- All example scripts should work with the nest, neuron and brian2 backends.
- The backend to use should be specified on the command line, and retrieved using the get_simulator() function from pyNN.utility. See examples/small_network.py for an example of this.
- Use save(figure_filename) instead of show()
- The top-level docstring should follow the example in examples/small_network.py
| def output_rate(spec_dict, guess): | ||
|
|
||
| newsim = testpynn.nest | ||
| newsim.setup(timestep=0.1) |
There was a problem hiding this comment.
I suggest moving the network creation outside the function, as is done in the PyNEST implementation. Inside the function, you just need to change the input rate, use sim.run(...), then neuron.get_data(clear=True) (the clear=True argument removes the data from the population after you've retrieved them)
There was a problem hiding this comment.
@apdavison 'sim.reset()' doesn't work with NEST. This was one of the primary reason as to implement inside the function call.
Sim.run() will continue the simulation from previous checkpoint which is opposite to what I desired for.
There was a problem hiding this comment.
For balanced_neuron_example, my results still differ from native NEST example? Is it fine? Is it due to the core implementation being reason for two different resultant value?
|
@apdavison So for one_neuron example, do you mean I develop three separate scripts each for 3 simulators? But Isn't this example a native NEST example? If that is something you meant, Do I need to go through simple network example from each simulator and then implement script to support each of these simulators? While adding examples to PyNN was just an approach to get familiarity with PyNN, if this is the case, I may not be able to complete the Primary Project which was to add e-props support to PyNN. Would you please clarify a bit as I might have misunderstood? |
|
I just updated |
|
@apdavison This was intended to be closed as was created just for TESTING/Experimentation purposes. Re-open if you feel something needs to be done. |
Balanced Neuron Example
IAF neuron example with current generator
Resultant inhibitory frequency differs from NEST example for
Balanced Neuron Example