bluepyopt.ephys.mechanisms

Mechanism classes

Theses classes represent mechanisms in the model

class bluepyopt.ephys.mechanisms.Mechanism(name='', comment='')[source]

Base parameter class

class bluepyopt.ephys.mechanisms.NrnMODMechanism(name, mod_path=None, suffix=None, locations=None, preloaded=True, deterministic=True, prefix=None, comment='')[source]

Neuron mechanism

Constructor

Parameters:
  • name (str) – name of this object

  • mod_path (str) – path to the MOD file (not used for the moment)

  • suffix (str) – suffix of this mechanism in the MOD file

  • locations (list of Locations) – a list of Location objects pointing to where this mechanism should be added to.

  • preloaded (bool) – should this mechanism be side-loaded by BluePyOpt, or was it already loaded and compiled by the user ? (not used for the moment)

  • prefix (str) – Deprecated. Use suffix instead.

destroy(sim=None)[source]

Destroy mechanism instantiation

generate_reinitrng_hoc_block()[source]

“Create re_init_rng code blocks for this channel

static hash_hoc(string, sim)[source]

Calculate hash value of string in Python

static hash_py(string)[source]

Calculate hash value of string in Python

instantiate(sim=None, icell=None)[source]

Instantiate

instantiate_determinism(deterministic, icell, isec, sim)[source]

Instantiate enable/disable determinism

property prefix

Deprecated, prefix is now replaced by suffix

class bluepyopt.ephys.mechanisms.NrnMODPointProcessMechanism(name, mod_path=None, suffix=None, locations=None, preloaded=True, comment='')[source]

Neuron mechanism

Constructor

Parameters:
  • name (str) – name of this object

  • mod_path (str) – path to the MOD file (not used for the moment)

  • suffix (str) – suffix of this mechanism in the MOD file

  • locations (list of Locations) – a list of Location objects pointing to compartments where this mechanism should be added to.

  • preloaded (bool) – should this mechanism be side-loaded by BluePyOpt, or was it already loaded and compiled by the user ? (not used for the moment)

destroy(sim=None)[source]

Destroy mechanism instantiation

instantiate(sim=None, icell=None)[source]

Instantiate