Welcome to Patch’s documentation!

https://badge.fury.io/gh/Helveg%2Fpatch.svg https://travis-ci.com/Helveg/patch.svg?branch=master https://codecov.io/gh/Helveg/patch/branch/master/graph/badge.svg https://img.shields.io/badge/code%20style-black-000000.svg Documentation Status

Installation

Patch can be installed using:

pip install nrn-patch

Syntactic sugar & quality of life

This wrapper aims to make NEURON more robust and user-friendly, by patching common gotcha’s and introducing sugar and quality of life improvements. For a detailed overview of niceties that will keep you sane instead of hunting down obscure bugs, check out the Candy Guide.

Known unpatched holes

  • When creating point processes the returned object is unwrapped. This can be resolved using Glia, or by using this syntax:

# In neuron
process = h.MyMechanismName(my_section(0.5), *args, **kwargs)
# In patch
point_process = p.PointProcess(p.MyMechanismName, my_section(0.5), *args, **kwargs)

Indices and tables