Skip to content

Instantly share code, notes, and snippets.

@edeno
Last active September 24, 2018 18:15
Show Gist options
  • Save edeno/2daa78c440055883a760bf73e3a0e240 to your computer and use it in GitHub Desktop.
Save edeno/2daa78c440055883a760bf73e3a0e240 to your computer and use it in GitHub Desktop.
Get position info interpolated to 1000 Hz
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