Skip to content
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] add trial handling to Unitary Events analysis plot_ue #80

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion requirements/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
neo>=0.9.0
elephant>=0.9.0
elephant>=0.14.0
numpy>=1.19.5
quantities>=0.14.1
matplotlib>=3.3.2
Expand Down
6 changes: 4 additions & 2 deletions viziphant/unitary_event_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
import matplotlib.pyplot as plt
import string
import elephant.unitary_event_analysis as ue
from elephant.trials import Trials
from elephant.utils import trials_to_list_of_spiketrainlist
from collections import namedtuple

FigureUE = namedtuple("FigureUE", ['axes_spike_events',
Expand Down Expand Up @@ -58,7 +60,7 @@
'suptitle': None,
}


@trials_to_list_of_spiketrainlist
def plot_ue(spiketrains, Js_dict, significance_level=0.05,
**plot_params):
"""
Expand All @@ -69,7 +71,7 @@ def plot_ue(spiketrains, Js_dict, significance_level=0.05,

Parameters
----------
spiketrains : list of list of neo.SpikeTrain
spiketrains : list of list of neo.SpikeTrain or :class:`elephant.trials.Trials`
A nested list of trials, neurons and their neo.SpikeTrain objects,
respectively. This should be identical to the one used to generate
Js_dict.
Expand Down
Loading