Closed ben-toker closed 2 months ago
The problem was trying to get binned_pos
, flightID
, and LFPs
to all be the same shape, as this was essential for the model to run and for synchrony purposes. However, I learned (from Kevin Qi) that only a tiny fraction of the binned_pos samples
correspond to flights. So I wrote some code to filter out which samples belong to flights while including a parameter allowing you to give a certain amount of samples before and after the flight (called off_samples
). Essentially, get_flightID
and get_flightLFP
(the filtered and organized versions of binned_pos
and LFPs
, respectively) are much smaller than their unfiltered counterparts, but this organization allows us to align the LFP to flights more effectively.
We need to create a
get_flightID
function. This should create a flightID array that will store binned position data aligned with individual flights as such:The primary issue is getting all of the
binned_pos
data points in there. The length of theflightID
array needs to match up with the length of the importedLFPs
data so that TIMBRE can be applied to it, but this is proving difficult.