Skip to content

Commit

Permalink
add n sbs to report
Browse files Browse the repository at this point in the history
  • Loading branch information
SophieHerbst committed Mar 24, 2024
1 parent be6850a commit f1e63da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mne_bids_pipeline/steps/sensor/_99_group_average.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ def average_evokeds(
for condition, evoked in zip(conditions, evokeds):
tags = ("evoked", _sanitize_cond_tag(condition))
if condition in cfg.conditions:
title = f"Average (sensor): {condition}"
title = f"Average (sensor): {condition}, N = {len(cfg.subjects)}"
else: # It's a contrast of two conditions.
title = f"Average (sensor) contrast: {condition}"
title = f"Average (sensor) contrast: {condition}, N = {len(cfg.subjects)}"
tags = tags + ("contrast",)

report.add_evokeds(
Expand Down Expand Up @@ -447,7 +447,7 @@ def average_time_by_time_decoding(
)
savemat(out_files["mat"], contrast_score_stats)

section = "Decoding: time-by-time"
section = f"Decoding: time-by-time, N = {len(cfg.subjects)}"
with _open_report(
cfg=cfg, exec_params=exec_params, subject=subject, session=session
) as report:
Expand Down Expand Up @@ -679,7 +679,7 @@ def average_full_epochs_report(
report.add_figure(
fig=fig,
title="Full-epochs decoding",
section="Decoding: full-epochs",
section=f"Decoding: full-epochs, N = {len(cfg.subjects)}"
caption=caption,
tags=(
"epochs",
Expand Down

0 comments on commit f1e63da

Please sign in to comment.