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

zero padded run numbers in output files #408

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

jmumford
Copy link

@jmumford jmumford commented Mar 7, 2025

Likely not the most elegant solution, but it works. Michael will test on some other data sets and then I'll let you know if it works without errors on those data.

I've encountered an issue with pybids where graph.layout.entities['run'].files does not consistently include the derivative entities, which may be used in an attempt to retrieve the padded run number. I have a workaround that seems stable.

Note, it seems older fmriprep may produce output files where run numbers are not zero padded while the BIDS data did have zero padded run numbers. In this case it is a bit random whether or not the fitlins output files will have zero padded run numbers, depending on whether or not the derivative entities were included in graph.layout.entities['run'].files.keys(). Probably not a big deal.

black changed a lot, my addition starts on line 284.

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.

1 participant