hnn_core.read_spikes¶
- hnn_core.read_spikes(fname, gid_ranges=None)[source]¶
Read spiking activity from a collection of spike trial files.
- Parameters:
- fnamestr
Wildcard expression (e.g., ‘<pathname>/spk_*.txt’) of the path to the spike file(s).
- gid_rangesdict of lists or range objects | None
Dictionary with keys ‘evprox1’, ‘evdist1’ etc. containing the range of Cell or input IDs of different cell or input types. If None, each spike file must contain a 3rd column for spike type.
- Returns:
- cell_responseCellResponse
An instance of the CellResponse object.
Examples using hnn_core.read_spikes
¶
01. Plot firing pattern