-
Notifications
You must be signed in to change notification settings - Fork 532
terminal_output #2640
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
the file is removed because it's not needed downstream from a node. if you run it as an interface the file will stay. BET i don't think produces any stdout the only files kept by a node are listed here: any stdout/error is available via the runtime field of the result from an execution of an interface/node |
So this is not a bug and So this will not help with this qst? |
@djarecka - that is currently true. however there are some interfaces like fsl.ImageStats, where we interpret the terminal output into an output key. we could consider whether runtime information more generally can be used as an input to something else, but that is something we currently don't support. however i think the information from a node can be suppressed (which i think is the question) in different ways:
which defaults to |
Hi Satra, thanks for the reply. So I am using spm12 standalone and matlab mcr. Then it gives me the foll. error:
My spm12 standalone and mcr is running fine with the 'allatonce' option, but prints things to stdout. Thanks |
@spanta28 - that may be a bug - @djarecka - could you take a look at this within the nipype tutorial container? regarding logging: http://nipype.readthedocs.io/en/latest/users/config_file.html#enabling-logging-to-file also look at the debug section. if you set logging to |
@satra - just confirming that I can see a similar error after changing |
@satra I tried the logging acc. to |
I will try the debug CRITICAL thing now |
This worked for me in suppressing nipype.workflow to stdout Thanks @satra |
I've been debugging the @satra - any suggestions what should be changed? Is it ok that |
@djarecka - perhaps write a few tests with a shell script that write out to both stdout and stderr and see that all the terminal_output options return the appropriate values. |
Hi Nipype team, Just a follow up on this issue ======================================================================
ERROR: prepare dir containing fake Matlab and SPM installs and launch tests.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/circleci/.local/lib/python3.5/site-packages/nose/case.py", line 198, in runTest
self.test(*self.arg)
File "/home/circleci/project/pypreprocess/tests/test_configure_spm.py", line 327, in test_spm_config
_execute_spm_config_test(defaults, explicitly_set, spm_root)
File "/home/circleci/project/pypreprocess/tests/test_configure_spm.py", line 260, in _execute_spm_config_test
spm_dir = _configure_spm(defaults=defaults, **explicitly_set)
File "/home/circleci/project/pypreprocess/configure_spm.py", line 659, in _configure_spm
choice['configure'](*found)
File "/home/circleci/project/pypreprocess/configure_spm.py", line 499, in _configure_spm_using_mcr
matlab_cmd='{} batch'.format(spm_mcr), use_mcr=True)
File "/home/circleci/.local/lib/python3.5/site-packages/nipype/interfaces/spm/base.py", line 316, in set_mlab_paths
use_mcr=use_mcr)
File "/home/circleci/.local/lib/python3.5/site-packages/nipype/interfaces/spm/base.py", line 231, in getinfo
out = sd._strip_header(out.runtime.stdout)
File "/home/circleci/.local/lib/python3.5/site-packages/nipype/utils/spm_docs.py", line 53, in _strip_header
index = doc.index(hdr)
ValueError: substring not found This seems to appear with recent Nipype version. Any ideas why this happens and temporary fix for this ? is this something changed we are missing in using between 'batch' and 'run script' ? Thanks a lot for your time on this. |
What code produces this issue? It looks like you're running nose, which is not supported. Tests should be run via pytest. |
Thanks @effigies we missed this details. Yes we are running nosetests in pypreprocess. |
from which version is it stopped supporting nose ? I am trying to look at the changes but could not find it. |
0.13.0-rc1 nipype/doc/changelog/0.X.X-changelog Line 145 in 37f3781
Looks like the changelog on the site didn't get updated when we split 0.x changes from 1.x (the file was getting very large). |
@kchawla-pi - I'm not sure if the original issue is the same as #2690. But could you please be more specific about error from pytest. Is it with one of a |
Apologies, I was referring to the following comments, when I raised issue #2690 |
no reason to apologize, thank you for reporting! I guess there are a few problems described in this issue. Should finish it! But just coming back to my question - did you have the error when running one of our test? |
Nope, when I was running one of ours. |
It's unclear to me whether this issue has been fully solved. I'm going to close it. If there is still some remaining issue to address, let's open a new thread, so it's easier to read. |
Its resolved. Sorry for late reply. |
Summary
A question on neurostar motivated me to check
terminal_output
and I'm not sure if I understand how this should work. For example, I setterminal_output
="file" for node withBET
and I can see that the fileoutput.nipype
is created, but I it's removed before the node ends. In addition, I think the file is empty before removing anyway and the output is sent to my terminal.Can someone please explain me what is the expected behavior.
The text was updated successfully, but these errors were encountered: