Only calculate contrast under situations in which at least some spikes were detected in each time window
AccumulateSpatial
For tasks with low arena coverage (specifically, where the animal did not visit all 4 walls), invoking accumulate_spatial with keyword bin_width would incorrectly calculate the bin_edge arrays
Update accumulate_spatial to correctly calculate bin_edge arrays where the animal does not visit all 4 walls
Remove the edge transposition, which is both confusing and inconsistent with use elsewhere.
ThetaModulation
AccumulateSpatial For tasks with low arena coverage (specifically, where the animal did not visit all 4 walls), invoking
accumulate_spatial
with keywordbin_width
would incorrectly calculate the bin_edge arrays