Skip to content

Conversation

jhlegarreta
Copy link
Contributor

Provide FD arguments to combined plot function in BOLD notebook.

Fixes:

File "/home/runner/work/nifreeze/nifreeze/docs/notebooks/bold_realignment.py", line 275, in main
    plot_combined_profile(
TypeError: main.<locals>.plot_combined_profile() missing 2 required positional arguments: 'afni_fd' and 'nifreeze_fd'

raised for example in:
https://github.com/nipreps/nifreeze/actions/runs/15007162520/job/42168515561?pr=117#step:14:2223

Take advantage of the commit to rename the function definition variables so that they do not shadow the outer variables.

Provide FD arguments to combined plot function in BOLD notebook.

Fixes:
```
File "/home/runner/work/nifreeze/nifreeze/docs/notebooks/bold_realignment.py", line 275, in main
    plot_combined_profile(
TypeError: main.<locals>.plot_combined_profile() missing 2 required positional arguments: 'afni_fd' and 'nifreeze_fd'
```

raised for example in:
https://github.com/nipreps/nifreeze/actions/runs/15007162520/job/42168515561?pr=117#step:14:2223

Take advantage of the commit to rename the function definition variables
so that they do not shadow the outer variables.
@jhlegarreta jhlegarreta force-pushed the FixCombinedProfileCallInBOLDNotebook branch from d3e2608 to b4e47b7 Compare May 14, 2025 02:46
@jhlegarreta jhlegarreta marked this pull request as draft May 14, 2025 02:59
Comment on lines +301 to +302
" afni_fd,\n",
" nifreeze_fd,\n",
Copy link
Member

Choose a reason for hiding this comment

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

These are not ever calculated explicitly. It does look like some cell is gone.

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