data_base ❭ db_initializers ❭ load_simrun_general ❭ file_handling ❭ get_max_commas
get_max_commas¶
- data_base.db_initializers.load_simrun_general.file_handling.get_max_commas(paths)¶
Get the maximum amount of delimiters across many files.
Some data formats have a varying amount of commas in the synapse and cell activation files, reflecting e.g. different amounts of spikes per cell. This can not be padded during simulation, since it is not known what the maximum amount of e.g. spikes will be. This function determines the maximum amount of delimiters across all files post-hoc, so that the data can be padded out and read in.