Auryn simulator

Simulator for spiking neural networks with synaptic plasticity

User Tools

Site Tools


manual:python_binary_toolkit

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
manual:python_binary_toolkit [2016/08/10 19:15] – Adds binary state monitor example zenkemanual:python_binary_toolkit [2016/08/10 19:24] – [Example: Get membrane potential from BinaryStateMonitor file] zenke
Line 1: Line 1:
-====== Auryn Python toolkit ======+====== Auryn Python binary tools ======
  
 Auryn v0.8.0 is the first version to come with a set of Python tools which allow decoding from binary files generated with [[BinarySpikeMonitor]] or [[BinaryStateMonitor]]. You can find the Python code in the ''tools/python'' directory. Auryn v0.8.0 is the first version to come with a set of Python tools which allow decoding from binary files generated with [[BinarySpikeMonitor]] or [[BinaryStateMonitor]]. You can find the Python code in the ''tools/python'' directory.
Line 119: Line 119:
  
 sf = AurynBinaryStateFile(filename) sf = AurynBinaryStateFile(filename)
-spikes = np.array(sf.get_data(t_from, t_to))+mem = np.array(sf.get_data(t_from, t_to))
  
-pl.plot(spikes[:,0], spikes[:,1])+pl.plot(mem[:,0], mem[:,1])
 pl.xlabel("Time [s]") pl.xlabel("Time [s]")
 pl.ylabel("Membrane potential [V]") pl.ylabel("Membrane potential [V]")
manual/python_binary_toolkit.txt · Last modified: 2016/08/30 18:21 by zenke