bluepyemodel.icselector.modules.mechanism¶
Mechanism class corresponding to mechanisms fields in the icmapping file.
Classes
|
Holds all collected information associated with a Neuron mechanism. |
- class Mechanism(**kwargs)¶
Bases:
objectHolds all collected information associated with a Neuron mechanism. Corresponds to mechanisms fields in the icmapping file, with added fields containing additional information from GeneSelector.
- asdict()¶
Return fields as a dict
- deselect()¶
Deselect mechanism.
- get_bounds(param)¶
Get parameter bounds. :param param: parameter name :type param: str
- Returns:
parameter bounds
- Return type:
bounds (list)
- is_selected()¶
Mechanism has been selected for inclusion in model configuration.
- print()¶
Alternative print method
- select(check_status=None)¶
Select mechanism for inclusion in model configuration. :param check_status: only select the mechanism if status meets criterium :type check_status: str
- set_distribution(*args, **kwargs)¶
Set gbar distributions for all compartments. :param args: distribution (str or Distribution) :type args: list :param kwargs: fields to be set specified as {compartment: distribution} :type kwargs: dict
- set_from_gene_info(info)¶
Set fields based on gene info. :param info: channel information coming from the GeneSelector :type info: dict
- set_from_icmap(info)¶
Set fields based on icmap info. :param info: channel information coming from the icmapping file :type info: dict
- set_gbar(value)¶
Set the value of gbar :param value: value or bounds of gbar :type value: list or number
- set_parameters(**kwargs)¶
Set the values of model parameters other than gbar :param kwargs: parameter values formatted as {parameter: value} :type kwargs: dict