Cleaned up the plotting code and split into smaller functions.
Last committed version had analyze_excitation_inhibition_balance.py with lines accidentaly deleted. Restoring them.
Merged probabilities.py
Updated the datastructure for simulation data to include network file,
to find out presynaptic and post synaptic cells, to get stimulated
cells.
Updated analysis code to print number of stimulated TCR cells for spiny stellate cells.
Added cleaner handling of file closing in TraubData.
Fixed __get_cellcounts functions to skip erroneous entries and pick the counts for only valid celltypes.
Added code to load the synapse info as array.
Commented out the categorisation code from __main__ of analyze_excitation_inhibition_balance.py.
Updated the analysis code for plotting histogram for simulations where 20 TCR cells were stimulated for 10s or more.
Added the file containing filtered list of files to look into.
Updated stimulus plotting code to derive the dt used for recording stimulus from the length of the recorded data.
Updated analyze_excitation_inhibition_balance to plot the histograms
for all the relevant files in one functions. Added the list of data
files from these simulations to git repo.
Removed incomplete data files from filelist for plotting.
Updated analyze_excitation_inhibition_balance to dump greyscale pdf for deepbasket-cell-count - synchronized spiking period bar chart.
Cleaned up plotting code. moved datastructure defs to traubdata.py.
Traubdata updated with function to get background stimulus times.
Added burst calculation for spike trains.
Added methods to retrieve histogram for bursting cells.
Added initial version of script to extract the Vm for inter-burst interval.
Next - update this code to calculate the slopes.
     - calculate mean slope, std for each deep basket cell count.
Added regression lines on top of the interburst Vm.
Finished the bar chart. But not sure why it is showing max mean and std at 50. It seemed 60 in last run.
Minor update of plotting barchart for interburst Vm slope.
Made the time excluded around a burst a variable instead of putting it
directly as a constant into the expressions.