Skip to content

Commit

Permalink
DOC t_contrast_rel: error message when match is not specified
Browse files Browse the repository at this point in the history
  • Loading branch information
christianbrodbeck committed Sep 11, 2016
1 parent 8e0f60f commit 4f8a7a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eelbrain/_stats/testnd.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,9 @@ class t_contrast_rel(_Result):
def __init__(self, Y, X, contrast, match=None, sub=None, ds=None, tail=0,
samples=0, pmin=None, tmin=None, tfce=False, tstart=None,
tstop=None, parc=None, force_permutation=False, **criteria):
if match is None:
raise TypeError("The `match` parameter needs to be specified for "
"repeated measures test t_contrast_rel")
ct = Celltable(Y, X, match, sub, ds=ds, coercion=asndvar)

# setup contrast
Expand Down

0 comments on commit 4f8a7a7

Please sign in to comment.