-
Notifications
You must be signed in to change notification settings - Fork 532
SelectFiles doesn't accept lists as input #2712
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
Comments
@Shotgunosine lists should still be allowed, the problem is that you are trying to format a list with
it should remove the error |
This is more of an enhancement suggestion, but from what I can observe, Given a list as argument, However, The problem is that, for This could easily lead to unexpected errors and confusion. I suggest either
|
I think the latter would be reasonable. |
Summary
The documentation for SelectFiles indicates that you should be able to pass lists as inputs for the fields defined the template string. When I try that, I get the error:
TypeError: unsupported format string passed to list.__format__
Actual behavior
Crashes with the error:
TypeError: unsupported format string passed to list.__format__
Expected behavior
SelectFiles accepts an subject_id as a list and pull the anatomicals from the test session for both subject 1 and subject 2. As shown in the documentation.
How to replicate the behavior
Run the following snippet in the Nipype Tutorial container: miykael/nipype_tutorial:latest
Script/Workflow details
Running in the Nipype Tutorial container: miykael/nipype_tutorial:latest
produces:
Please put URL to code or code here (if not too long).
Platform details:
Execution environment
Choose one
The text was updated successfully, but these errors were encountered: