-
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
elephant/statistics.py
Outdated
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
|
||
Notes | ||
----- | ||
The check for the equal duration of the input spike trains is performed | ||
only if the input is of type`neo.SpikeTrain`: if you pass a numpy array, | ||
only if the input is of type`neo.SpikeTrain`: if you pass e.g. a numpy array, | ||
please make sure that they all have the same duration manually. |
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.
move notes to spiketrains parameter docstring
(see Notes). | ||
Default: 0.1 ms | ||
pool_trials : 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 parameter -> default behavior for trial object as input
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
Changes
fanofactor
now handles trial object