Skip to content

Commit

Permalink
Updating docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
gviejo committed Jan 26, 2024
1 parent 5f417b2 commit 36dca09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pynapple/process/perievent.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# @Author: gviejo
# @Date: 2022-01-30 22:59:00
# @Last Modified by: Guillaume Viejo
# @Last Modified time: 2024-01-25 16:46:51
# @Last Modified time: 2024-01-26 15:52:19

import numpy as np

Expand Down Expand Up @@ -200,8 +200,8 @@ def compute_event_trigger_average(
time_unit="s",
):
"""
Bin the spike train in binsize and compute the Event Trigger Average (ETA) within windowsize.
If C is the spike count matrix and `feature` is a Tsd array, the function computes
Bin the event timestamps within binsize and compute the Event Trigger Average (ETA) within windowsize.
If C is the event count matrix and `feature` is a Tsd array, the function computes
the Hankel matrix H from windowsize=(-t1,+t2) by offseting the Tsd array.
The ETA is then defined as the dot product between H and C divided by the number of events.
Expand Down
2 changes: 1 addition & 1 deletion pynapple/process/tuning_curves.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def compute_1d_tuning_curves(group, feature, nb_bins, ep=None, minmax=None):
if ep is None:
ep = feature.time_support
else:
assert isinstance(ep, nap.IntervalSet), "ep should be an IntervalSet"
assert isinstance(ep, nap.IntervalSet), "ep should be an IntervalSet"

if minmax is None:
bins = np.linspace(np.min(feature), np.max(feature), nb_bins + 1)
Expand Down

0 comments on commit 36dca09

Please sign in to comment.