single_cell_parsernetwork_param_modify_functionschange_glutamate_syn_weights

change_glutamate_syn_weights

single_cell_parser.network_param_modify_functions.change_glutamate_syn_weights(param, g_optimal=None, pop=EXCITATORY)

Changes the glutamate synapse weights in the Network parameters to the optimal values.

Parameters:
  • param (sumatra.parameters.NTParameterSet | dict) – The Network parameters.

  • g_optimal (pandas.core.series.Series | pandas.core.frame.DataFrame) – The optimal values for the glutamate synapse weights. If a Series is given, the same value is applied to both the AMPA and NMDA receptors. If a DataFrame is given, the AMPA and NMDA receptors are set to the values in the ‘AMPA’ and ‘NMDA’ columns, respectively.

  • pop (list) – The celltypes to apply the scaling to.

Raises:
  • AssertionError – If more than 1 index is found for the celltype in g_optimal.

  • AssertionError – If the celltype is not found in g_optimal.