Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixup for TWA-HP (gh1043) #1055

Merged
merged 8 commits into from
Feb 19, 2025
Merged

fixup for TWA-HP (gh1043) #1055

merged 8 commits into from
Feb 19, 2025

Conversation

drammock
Copy link
Member

Before merging …

  • Changelog has been updated (docs/source/dev.md.inc)

Copy link
Member Author

@drammock drammock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +158 to +161
runs_tasks = get_runs_tasks(
config=cfg, subject=subject, session=session, which=("runs",)
)[0]
)
run = next(filter(lambda run_task: run_task[1] == task, runs_tasks))[0]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

previously there was a possibility that runs_tasks[0][0] might be a run that wasn't present for the current task; this should correct that.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes to this file just revert to what it was like before #1043; it's cruft because I initially implemented TWA-HP in this file but then later moved it to _02_headpos so these changes were no longer needed.

@@ -313,7 +312,6 @@ def main(*, config: SimpleNamespace) -> None:
subject=subject,
session=session,
task=config.task or None, # default task is ""
run=None,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to pass in run here as it's never used

@larsoner larsoner enabled auto-merge (squash) February 19, 2025 18:19
@larsoner larsoner disabled auto-merge February 19, 2025 18:19
@larsoner larsoner enabled auto-merge (squash) February 19, 2025 18:19
@drammock
Copy link
Member Author

drammock commented Feb 19, 2025

argh, osf.io is having a bad day :(
edit: for ds003104. The other failure is a legit error, investigating

@larsoner
Copy link
Member

failure appears real (finally!)

@larsoner larsoner merged commit 63d2286 into mne-tools:main Feb 19, 2025
60 of 61 checks passed
@drammock drammock deleted the twa-followup branch February 19, 2025 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants