Skip to content

Commit 1b22dd1

Browse files
committed
TEST: Add null grouping variable session
1 parent 48fb815 commit 1b22dd1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bids/modeling/tests/test_statsmodels.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ def test_entire_graph_smoketest(graph):
105105
# At dataset level, do one-sample t-tests separately for each gender,
106106
# but also two-sample t-tests comparing males and females.
107107
# Note that there are only 2 subjects in the graph.
108-
outputs = graph["run"].run(group_by=['subject', 'run'])
108+
# Note also that there is only one session (with no session label), which
109+
# should have no effect as a grouping variable
110+
outputs = graph["run"].run(group_by=['subject', 'session', 'run'])
109111
# 2 subjects x 3 runs
110112
assert len(outputs) == 6
111113
cis = list(chain(*[op.contrasts for op in outputs]))

0 commit comments

Comments
 (0)