Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 1.33 KB

README.md

File metadata and controls

57 lines (38 loc) · 1.33 KB

Numneur

A low-level repo for neural dyamics simulation in Cython. net1 Mainly composed of 4 modules:

  • neur: simulation of dynamical systems (neurons, networks, 2D oscillators, etc.)
  • networks: build the abstract structure of the graph for networks (small-wold, Barabasi-Albert, etc.)
  • stochastic: some stuff for implementing stochastic processes (thresholded OU, Poisson)
  • chem: mainly Gillespie for ionic channel dynamics

Why not just use a simulator ?:

  • simulators, though easier to use and multi-platform comaptible, are slow due to the high level of structures
  • easier to define non-standard models
  • easier to follow numerical subtleties
  • more fun

Compilation and suggested enviroment

Setup the environment using pipenv

pipenv install
pipenv shell

then compile with

make

or

make hardcore

(see here for more details on Cython compilation options).

Examples

izi1

izi2

izi3

Euler vs RK4

Explicit Euler is roughly three times faster than RK4 and does not show great differences, apart from a slightly different timescale

izi4

izi5

Networks

net1