Skip to content

djanloo/numneur

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Cython/Python stuff for Neural Dynamics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published