single_cell_parsercell_parserCellParserupdate_range_mechanisms

CellParser.update_range_mechanisms

single_cell_parser.cell_parser.CellParser.update_range_mechanisms(label, updateMechName, mechs)

Updates range mechanism updateMechName in all structures named as label.

This method is essentially the same as insert_range_mechanisms, but does not insert mechanisms. Instead assumes they’re already present.

Used during parameter variations; e.g. for optimization and exploration of neuron models (see biophysics_fitting).

Parameters:
  • label (str) – Label of the structure.

  • updateMechName (str) – Name of the mechanism to update.

  • mechs (ParameterSet) – Range mechanisms. Must contain the key spatial to define the spatial distribution. Possible values for spatial distributions are given in insert_range_mechanisms().

Raises:
  • RuntimeError – If the structure has not been parsed from the .hoc file yet.

  • NotImplementedError – If the spatial distribution is not implemented.