-
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
[ENH] Integrate trials object with Fano factor #645
base: master
Are you sure you want to change the base?
[ENH] Integrate trials object with Fano factor #645
Conversation
Default: False | ||
pool_spike_trains : bool, optional | ||
If True, pool spike trains within each trial before computing the Fano factor. | ||
Default: 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.
add to docs: if spiketrains
is a list, parameters are ignored
f"different duration (minimum: {np.min(durations)}s, maximum " | ||
f"{np.max(durations)}s).") | ||
else: | ||
warnings.warn(f"Spiketrains was of type {type(spiketrains)}, which does not support automatic duration" |
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.
remove warning
pool_trials : bool, optional | ||
If True, pool spike trains across trials before computing the Fano factor. | ||
Default: False | ||
pool_spike_trains : bool, optional |
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.
remove pool_spiketrains_parameter
This pull request introduces an enhancement to Fano factor using the the
elephant.trials
module to represent trials. This change is part of a greater effort to provide a more structured and unified approach for handling trial data in Elephant.Trial representations
This pull request adds two new parameters,
pool_trials
andpool_spike_trains
, to the function. These parameters allow to control how spike trains are aggregated across trials and within individual trials.Changes
fanofactor
now handles trial objectpool_trials
parameterpool_spike_trains
parameter