diameter_synthesis.utils¶
Utils functions.
Functions
|
Create dict to load the morphologies from a directory, by mtype. |
|
Get all neuron diameters (morphio only). |
|
Replace given diameters at indices diam_ind with values diam_new (morphio only). |
|
Set all neuron diameters (morphio only). |
- diameter_synthesis.utils.create_morphologies_dict(morph_path, mtypes_file=None)¶
Create dict to load the morphologies from a directory, by mtype.
- Args:
morph_path (str): path to morphologies. mtype_file (str): path to dat file.
- Returns:
dictionary of morphologies with single key.
- Return type:
- diameter_synthesis.utils.get_all_diameters(neuron)¶
Get all neuron diameters (morphio only).
- Parameters:
neuron (morphio.mut.Morphology) – neuron to consider
- Returns:
all diameters
- Return type:
- diameter_synthesis.utils.redefine_diameter_section(section, diam_ind, diam_new)¶
Replace given diameters at indices diam_ind with values diam_new (morphio only).