netpyne.analysis.spikes module
Module for analysis of spiking-related results
- netpyne.analysis.spikes.prepareSpikeData(include=['allCells'], sim=None, timeRange=None, maxSpikes=100000000.0, orderBy='gid', popRates=True, syncLines=True, saveData=False, fileName=None, fileDesc=None, fileType=None, fileDir=None, colorbyPhase=None, **kwargs)[source]
Function to prepare data for creating spike-related plots
- netpyne.analysis.spikes.prepareRaster(include=['allCells'], sim=None, timeRange=None, maxSpikes=100000000.0, orderBy='gid', popRates=True, colorbyPhase=None, saveData=False, fileName=None, fileDesc=None, fileType=None, fileDir=None, **kwargs)[source]
Function to prepare data for creating a raster plot
- netpyne.analysis.spikes.prepareSpikeHist(include=['allCells', 'eachPop'], sim=None, timeRange=None, maxSpikes=100000000.0, popRates=True, saveData=False, fileName=None, fileDesc=None, fileType=None, fileDir=None, binSize=5, **kwargs)[source]
Function to prepare data for creating a spike histogram plot
- netpyne.analysis.spikes.popAvgRates(tranges=None, show=True)[source]
Function to calculate and return average firing rates by population
- Parameters:
tranges (list or tuple) – The time range or time ranges to calculate firing rates within Default:
None
uses the entire simulation time range. Options: a single time range is defined in a list ([startTime, stopTime]
) while multiple time ranges should be a tuple of lists (([start1, stop1], [start2, stop2])
).show (bool) – Whether or not to print the population firing rates Default:
True