Skip to content

Commit a33d443

Browse files
committed
Fix SubjectEphy when only a single time point
1 parent dc3e246 commit a33d443

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frites/dataset/suj_ephy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def __new__(self, x, y=None, z=None, roi=None, times=None, agg_ch=True,
168168
# __________________________ Sampling rate ____________________________
169169
# infer the sampling frequency (if needed)
170170
if sfreq is None:
171-
if times is not None:
171+
if (times is not None) and (len(times) >= 2):
172172
sfreq = 1. / (times[1] - times[0])
173173
else:
174174
logger.warning("Impossible to infer the sampling frequency. "

0 commit comments

Comments
 (0)