Last active
September 24, 2018 18:15
-
-
Save edeno/2daa78c440055883a760bf73e3a0e240 to your computer and use it in GitHub Desktop.
Get position info interpolated to 1000 Hz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from loren_frank_data_processing import get_interpolated_position_dataframe, get_spike_indicator_dataframe | |
from src.parameters import ANIMALS | |
epoch_key = ('HPa', 6, 2) | |
def time_function(epoch_key, animals): | |
neuron_info = make_neuron_dataframe(ANIMALS).xs(epoch_key, drop_level=False) | |
neuron_key = neuron_info.index[0] | |
return get_spike_indicator_dataframe(neuron_key, ANIMALS).resample('1ms').index | |
position_info = get_interpolated_position_dataframe(epoch_key, ANIMALS, time_function=time_function) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment