bluepyemodel.tools.mechanisms

Mechanisms related functions

Functions

compile_mechs(mechanisms_dir)

Compile the mechanisms.

compile_mechs_in_emodel_dir(mechanisms_directory)

Compile mechanisms in emodel directory.

copy_and_compile_mechanisms(access_point)

Copy mechs if asked, and compile them.

copy_mechs(mechanism_paths, out_dir)

Copy mod files in the designated directory.

delete_compiled_mechanisms()

Delete compiled mechanisms.

discriminate_by_temp(resources, temperatures)

Select sublist of resources with given temperature.

get_mechanism_currents(mech_file)

Parse the mech mod file to get the mechanism ion and non-specific currents if any.

get_mechanism_name(mech_file)

Parse the mech mod file to get the mechanism suffix or point process to use as name.

compile_mechs(mechanisms_dir)

Compile the mechanisms.

Parameters:

mechanisms_dir (str) – path to the directory containing the mod files to compile.

compile_mechs_in_emodel_dir(mechanisms_directory)

Compile mechanisms in emodel directory.

Parameters:

mechanisms_dir (Path) – path to the directory containing the mod files to compile.

copy_and_compile_mechanisms(access_point)

Copy mechs if asked, and compile them.

copy_mechs(mechanism_paths, out_dir)

Copy mod files in the designated directory.

Parameters:
  • mechanism_paths (list) – list of the paths to the mod files that have to be copied.

  • out_dir (str) – path to directory to which the mod files should be copied.

delete_compiled_mechanisms()

Delete compiled mechanisms.

discriminate_by_temp(resources, temperatures)

Select sublist of resources with given temperature.

get_mechanism_currents(mech_file)

Parse the mech mod file to get the mechanism ion and non-specific currents if any.

get_mechanism_name(mech_file)

Parse the mech mod file to get the mechanism suffix or point process to use as name.