-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Trial handling in Elephant #579
[Feature] Trial handling in Elephant #579
Conversation
Hello @Moritz-Alexander-Kern! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2023-10-31 09:19:48 UTC |
…_spike_trains = False returns one analog signal
…ts class returns a neo SpikeTrainList
…e/trial_class # Conflicts: # elephant/trials.py
…nd pool_spike_trains=True
…=True and pool_spike_trains=False
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
build wheels
d3a35a2
into
NeuralEnsemble:master
This PR is the initial contribution to introduce a trial handling functionality into Elephant.
The PR includes the following changes:
Meta class:
Trials
: This meta class is responsible for defining the behavior and structure of the trial objects in Elephant. It includes methods and attributes related to handling and manipulating trials.Implementations:
TrialsFromBlock
andTrialsFromLists
: These two implementations are specific ways to createTrials
objects from different data structures.TrialsFromBlock
may create trial objects from a neo.block of data, whileTrialsFromLists
creates trial objects from lists of data.Modification to
elephant.statistics.instantaneous_rate
: Theinstantaneous_rate
function in the Elephant library is modified to accept aTrials
object as input. This modification enables the calculation of firing rates based on the values ofcross_spiketrain
andcross_trial
. The firing rate calculation can now be averaged over trials or spiketrains within a trial, or both.Overall, this PR adds trial handling functionality to the Elephant library, allowing users to work with trials and for now calculate averaged firing rates .