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 revisionBoth sides next revision
manual:python_binary_toolkit [2016/08/10 19:24] – [Example: Get membrane potential from BinaryStateMonitor file] zenkemanual:python_binary_toolkit [2016/08/30 18:18] – Updates python package name to new develop branch zenke
Line 3: Line 3:
 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.
  
 +To use the Auryn tools point your Python path to the ''auryn/tools/python'' directory. For instance by
 +<code>
 +export PYTHONPATH=$PYTHONPATH:<path_to_this_directory>/auryn/tools/python
 +</code>
  
 ===== Example: Plot spikes from spk file ===== ===== Example: Plot spikes from spk file =====
Line 12: Line 16:
 import numpy as np import numpy as np
 import pylab as pl import pylab as pl
-from auryn_binary_tools import *+from auryntools import *
  
 filename  =  "/tmp/coba.0.e.spk" filename  =  "/tmp/coba.0.e.spk"
Line 38: Line 42:
 import numpy as np import numpy as np
 import pylab as pl import pylab as pl
-from auryn_binary_tools import *+from auryntools import *
  
 num_mpi_ranks = 4 num_mpi_ranks = 4
Line 67: Line 71:
 import numpy as np import numpy as np
 import pylab as pl import pylab as pl
-from auryn_binary_tools import *+from auryntools import *
  
 datadir = "/home/zenke/data/sim" # Set this to your local data path datadir = "/home/zenke/data/sim" # Set this to your local data path
Line 108: Line 112:
 import numpy as np import numpy as np
 import pylab as pl import pylab as pl
-from auryn_binary_tools import *+from auryntools import *
  
 # This code snipped assumes that you have run the example simulation # This code snipped assumes that you have run the example simulation
manual/python_binary_toolkit.txt · Last modified: 2016/08/30 18:21 by zenke