You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to insert spikes from multiple neurons into a simulation via a CSV file. How should the file be formatted? I took a look at the code in utils and io and I didn't get it:-D It looks like there's just one column 'spike times'. Where are the neuron indices stored? Or is this io for the spikes of just one neuron?
Thank you so much!
All the very best,
Maria
The text was updated successfully, but these errors were encountered:
Hi @mariakesa, spike-train csv files should contain at-least 2 columns "node_ids" (containing positive integer) and "timestamps" (floating point value in milliseconds from start of simulation), with each row corresponds to a different spike event.
Here is an example of a spikes input file in csv format. Note that this example has an extra "population" with values "thalamus" which would need to be changed or omitted. For example in the PointNet tutorial the external network is called LGN and has 500 individual cells. Here is an example of code to generate spike-train file for 500 cells all firing at 10Hz for 3 seconds - using a Poisson distribution:
frombmtk.utils.reports.spike_trainsimportPoissonSpikeGeneratorpsg=PoissonSpikeGenerator(
population='LGN', # name of external populationoutput_units='ms'
)
psg.add(
node_ids=range(500), # list of node_ids to generate spikes forfiring_rate=10.0, # firing rate in Hztimes=(0.0, 3.0)
)
psg.to_csv('lgn_spikes.csv')
The generated lgn_spikes.csv should look something like the following:
Hello:-)
Thank you for a cool package!
I want to insert spikes from multiple neurons into a simulation via a CSV file. How should the file be formatted? I took a look at the code in utils and io and I didn't get it:-D It looks like there's just one column 'spike times'. Where are the neuron indices stored? Or is this io for the spikes of just one neuron?
Thank you so much!
All the very best,
Maria
The text was updated successfully, but these errors were encountered: