Source code for DemoUnit.capabilities
import sciunit
from typing import Dict, List
#==============================================================================
[docs]class SomaReceivesStepCurrent(sciunit.Capability):
"""Enables injecting step current stimulus to soma"""
[docs] def inject_soma_square_current(self, current):
"""Model should implement this method such as to inject the specified
current stimulus into the soma of the neuron.
Input current is specified in the form of a dict with keys:
'delay' : (value in ms),
'duration' : (value in ms),
'amplitude' : (value in nA)
Example of current stimulus:
.. code-block:: python
current = {'delay' : 10.0,
'duration' : 50.0,
'amplitude': 1.0 }
"""
raise NotImplementedError()
[docs]class SomaProducesMembranePotential(sciunit.Capability):
"""Enables recording membrane potential from soma """
[docs] def get_soma_membrane_potential(self, tstop: float):
"""Run simulation for time 'tstop', specified in ms, while recording the somatic membrane potential.
Must return a list of the form:
| [ list1, list2 ] where,
| list1 = time series (in ms)
| list2 = membrane potential series (in mV)
"""
raise NotImplementedError()