-
Notifications
You must be signed in to change notification settings - Fork 229
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
Recovering stdout/stderr from python wrapper #773
Comments
This repository does not include any reference Python wrappers, though the home page links to other wrappers that depend on dcm2niix. Therefore, I think your message is related to a different repository. I am not a Python expert, but it is unclear what feature you need that does not already exist with the Python subprocess methods, for example, this ChatGPT generated script appears to intercept the outputs of dcm2niix nicely:
|
Hi @neurolabusc, I was refering to |
@casperdcl do you want to modify this file to respond to this issue? |
Thanks for the fast modifications) |
In current implementation of the Python wrapper, the output of the dcm2niix is printed directly to stdout.
However it make it more difficult to recover output, if dcm2niix is run inside the pipeline with a logging into a file.
I would propose to add parameters which will be forwarded directly to
subprocess.run
, something like:It would allow to capture output of the dcm2niix:
It will also allow to recover the exit code and detect if conversion was successful.
The text was updated successfully, but these errors were encountered: