emodelrunner.morphology.builder

Builds morphology objects.

Functions

create_morphology(morph_args, package_type)

Creates the morphology object.

get_axon_hoc(axon_hoc_path)

Returns string containing axon hoc to use as replacement.

emodelrunner.morphology.builder.create_morphology(morph_args, package_type)[source]

Creates the morphology object.

Parameters
  • morph_args (MorphArgs) – morphology-related configuration

  • package_type (Enum) – enum denoting the package type

Raises

ValueError – raised when package_type is not supported

Returns

morphology object

Return type

ephys.morphologies.NrnFileMorphology

emodelrunner.morphology.builder.get_axon_hoc(axon_hoc_path)[source]

Returns string containing axon hoc to use as replacement.

Parameters

axon_hoc_path (str) – path to axon hoc file

Returns

new axon hoc

Return type

str