simrunutilsget_cellnumbers_from_confile

get_cellnumbers_from_confile

simrun.utils.get_cellnumbers_from_confile(confile)

Get the amount of cells of each type from a confile.

get_cellnumbers_from_confile() reads the confile and returns (alongisde the anatomical ID, here unused) a dictionary of the format:

{cell\_type: [(cellType, cellID, synID), ...]}

This method fetches the cellID of the last cell each cell type and adds 1 to infer the amount of cells of that type.

Parameters:

confile (str) – The path to the .con file.

Returns:

A dictionary of the format {"cell\_type": amount\_of\_cells}

Return type:

dict