Skip to main content

Synapses and cells

Project description


Synapses and cells.

Spiking neural network (SNN) consisted of cells with processing algorithms, connected by synapses with realistic signal transmission properties. The engine that runs the SNN is written in plain C++ with interface in Python, for simplicity and platform mobility.


We implemented test scripts as a module. You can run them by running the following commands from python console after installing the synacell library:

import synacell.test as sctest

Warning: The script generates temporary files in the directory from where you run the python console.

Tests that will run when running sctest.run_all() are the test functions from the modules:

  • test_simple
  • test_plot



Compare results with LTSpice output. The goal is to validate the solution of the differential equation describing the synapse or cell circuit. Submodules are:

  • example_spice
  • example_part


Compare the difference between the spice model of the SynaRCA circuit and the synacell model. Run the example:

import synacell.examples as scex

This example runs two circuits, one for ODE of order 1 and the other for ODE of order 2.

Example produces files in the working directory (where you run python from).

  • SynaRCA.wav - WAV file for the synacell
  • SynaRCA.raw - Spice file that can be runned from python's LTSpice
  • SynaRCA.asc - Spice file that can be openned from LTSpice and examine or modify the circuit.
  • SynaRCA.pwl - Input file for the spice model, produced by synacell.


Watch output from different parts.


Watch the cell output (vo) that performs Exponential Moving Average from its input (vi). Run the example:

import synacell.examples as scex


Loading of multiple files into single CellMultiData neuron and using the cell as validator and error computing cell:

import synacell.examples as scex


Computes the transfer function H(f) for CellRLC cell.

import synacell.examples as scex


For now, we compiled the C++ software as a Windows shared library (.dll) for 64-bit architectures. We set the official PyPI package for:

  • Windows 64bit
  • Python 3.7+ 64bit

If you plan to compile the c++ by yourself, check the file:

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

synacell-0.0.11.tar.gz (4.3 MB view hashes)

Uploaded Source

Built Distribution

synacell-0.0.11-py3-none-any.whl (4.6 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page