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

argument --slice-time-ref: invalid _slice_time_ref value: '0' #2572

Closed
bmelo opened this issue Oct 5, 2021 · 4 comments
Closed

argument --slice-time-ref: invalid _slice_time_ref value: '0' #2572

bmelo opened this issue Oct 5, 2021 · 4 comments
Labels
Milestone

Comments

@bmelo
Copy link

bmelo commented Oct 5, 2021

Hi all, we are trying to run the new fMRIPrep 20.2.4 release to use the new flag --slice-time-ref, but we are getting the following errors:

fmriprep: error: argument --slice-time-ref: invalid _slice_time_ref value: 'start'
fmriprep: error: argument --slice-time-ref: invalid _slice_time_ref value: '0'

It seems that the argument is wrong, but accordingly to the code it seems fine. Are we doing something wrong?

What version of fMRIPrep are you using?

20.2.4

What kind of installation are you using? Containers (Singularity, Docker), or "bare-metal"?

Singularity

What is the exact command-line you used?

fmriprep-20.2.4.sif --slice-time-ref 0 $BIDSDIR $OUTPUTDIR participant --participant_label $SUBJID

and

fmriprep-20.2.4.sif --slice-time-ref start $BIDSDIR $OUTPUTDIR participant --participant_label $SUBJID

Have you checked that your inputs are BIDS valid?

Yes.

Did fMRIPrep generate the visual report for this particular subject? If yes, could you share it?

No.

Can you find some traces of the error reported in the visual report (at the bottom) or in crashfiles?

fmriprep: error: argument --slice-time-ref: invalid _slice_time_ref value: '0'

Are you reusing previously computed results (e.g., FreeSurfer, Anatomical derivatives, work directory of previous run)?

No.

fMRIPrep log

If you have access to the output logged by fMRIPrep, please make sure to attach it as a text file to this issue.

It's not starting.

@bmelo bmelo added the bug label Oct 5, 2021
@effigies
Copy link
Member

effigies commented Oct 5, 2021

Thanks for this. I'm able to reproduce the issue in tests. Will see what's up.

@mgxd
Copy link
Collaborator

mgxd commented Oct 5, 2021

I think the problem is

def _slice_time_ref(value, parser):
needs to be converted to a partial to be used as an argparse type, since it requires the parser object.

@effigies
Copy link
Member

effigies commented Oct 5, 2021

Yup. I didn't realize that was our own hack. Submitting a PR now.

@effigies
Copy link
Member

effigies commented Oct 5, 2021

Closed by #2573.

@effigies effigies closed this as completed Oct 5, 2021
@effigies effigies added this to the 20.2.5 milestone Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants