Skip to content

Commit

Permalink
Merge branch 'main' into ica
Browse files Browse the repository at this point in the history
  • Loading branch information
hoechenberger authored Mar 27, 2024
2 parents 3f6010f + ed5939a commit a4fb2bb
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ files: ^(.*\.(py|yaml))$
exclude: ^(\.[^/]*cache/.*|.*/freesurfer/contrib/.*)$
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.3
rev: v0.3.4
hooks:
- id: ruff
args: ["--fix"]
Expand Down
4 changes: 3 additions & 1 deletion docs/source/v1.9.md.inc
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
## v1.9.0

[//]: # (### :new: New features & enhancements)
### :new: New features & enhancements

- Added number of subject to sub-average report (#902 by @SophieHerbst)

[//]: # (- Whatever (#000 by @whoever))

Expand Down
11 changes: 7 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,12 @@ 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}, "
f"N = {len(cfg.subjects)}"
)
tags = tags + ("contrast",)

report.add_evokeds(
Expand Down Expand Up @@ -447,7 +450,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 +682,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 a4fb2bb

Please sign in to comment.