Skip to content

Commit

Permalink
use biphasic as default kernel for ganglion
Browse files Browse the repository at this point in the history
  • Loading branch information
miladh committed May 21, 2018
1 parent 6f37633 commit a462237
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/source/quick.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Cells can be added to the network using :code:`create_<name>_cell()` method:
.. note::
The impulse-response function of ganglion cells can be set in two ways:

* It can either be given as an argument :code:`kernel` when the neuron object is created using :py:meth:`~pylgn.core.Network.create_ganglion_cell`. If no argument is given, a spatial DoG function and a temporal delta function is used.
* It can either be given as an argument :code:`kernel` when the neuron object is created using :py:meth:`~pylgn.core.Network.create_ganglion_cell`. If no argument is given, a spatial DoG function and a temporal biphasic function is used.

* The second option is to use the :py:meth:`~pylgn.core.Ganglion.set_kernel` method after that the neuron object is created.

Expand Down
4 changes: 2 additions & 2 deletions pylgn/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -738,12 +738,12 @@ def __init__(self, background_response, kernel, annotations={}):
Dictionary with various annotations.
"""
from .kernels.spatial import create_dog_ft
from .kernels.temporal import create_delta_ft
from .kernels.temporal import create_biphasic_ft

super().__init__(background_response, annotations)

if kernel is None:
kernel = (create_dog_ft(), create_delta_ft())
kernel = (create_dog_ft(), create_biphasic_ft())
self.set_kernel(kernel)

def _check_if_connection_is_allowed(self, neuron):
Expand Down

0 comments on commit a462237

Please sign in to comment.