[FEAT] Allow for custom topup config in PEPOLAR workflow#533
Closed
joey-scanga wants to merge 6 commits intonipreps:mainfrom
Closed
[FEAT] Allow for custom topup config in PEPOLAR workflow#533joey-scanga wants to merge 6 commits intonipreps:mainfrom
joey-scanga wants to merge 6 commits intonipreps:mainfrom
Conversation
mgxd
reviewed
Mar 4, 2026
Contributor
mgxd
left a comment
There was a problem hiding this comment.
Looks reasonable to me, just a few things left to address
Comment on lines
+111
to
+112
| if topup_config is None: | ||
| topup_config = str(data.load(f'flirtsch/b02b0{"_quick" * sloppy}.cnf')) |
Contributor
There was a problem hiding this comment.
I wonder if we should add some text the workflow desc to highlight an alternative config was used
Contributor
Author
There was a problem hiding this comment.
Does cba9118 work? Should we add a copy to the fmap derivatives folder too?
Co-authored-by: Mathias Goncalves <goncalves.mathias@gmail.com>
Co-authored-by: Mathias Goncalves <goncalves.mathias@gmail.com>
Co-authored-by: Mathias Goncalves <goncalves.mathias@gmail.com>
for more information, see https://pre-commit.ci
mgxd
approved these changes
Mar 9, 2026
| if topup_config is None: | ||
| topup_config = str(data.load(f'flirtsch/b02b0{"_quick" * sloppy}.cnf')) | ||
| else: | ||
| workflow.__desc__ += f' A custom `topup` configuration file was used: {topup_config}' |
Contributor
There was a problem hiding this comment.
since this could be a long filepath, i'm inclined to just say
Suggested change
| workflow.__desc__ += f' A custom `topup` configuration file was used: {topup_config}' | |
| workflow.__desc__ += ' A custom `topup` configuration file was used. |
Contributor
Author
|
I think I deleted these changes when trying to fork from an older version for testing purposes (2.10.0), should I just redo this off the main branch? |
Contributor
|
sure |
mgxd
pushed a commit
that referenced
this pull request
Apr 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tested with my fork of Nibabies master (in which I'm adding a flag
--topup-config)