bluepyemodel.icselector.modules.model_selector

Model selector selects NEURON mechanisms for cell model configuration

Classes

ModelSelector(ic_map)

Selects NEURON mechanisms for cell model configuration

class ModelSelector(ic_map)

Bases: object

Selects NEURON mechanisms for cell model configuration

Parameters:

ic_map (dict) – content of the icmapping.json file

get(name)

Get mechanism from channel or model name :param name: channel or model name :type name: str

Returns:

corresponding mechanism

Return type:

(Mechanism)

get_mechanisms(selected_only=True)

Get a copy of all available mechanisms from the icmapping file. :param selected_only: flag to get only selected channels :type selected_only: bool

Returns:

mechanisms with all associated info

fields

Return type:

mechs (dict [Mechanism])

select(name)

Select and return mechanism by channel or model name :param name: channel or model name :type name: str

Returns:

corresponding mechanism

Return type:

(Mechanism)