-
Notifications
You must be signed in to change notification settings - Fork 532
[FIX] Created TVTKBaseInterface. Should fix #1218 #1219
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
Conversation
have_tvtk = False | ||
|
||
try: | ||
from tvtk.api import tvtk |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the problem is that this import results in a sys exit call, if tvtk exists and DISPLAY is unavailable. i couldn't figure out a way to trap it. in that setting it doesn't generate an ImportError. it just plain kills the interpreter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep. A fix: #1178 (comment)
And a related question: #972 (comment)
This might be a better way of doing this: nipype/nipype/interfaces/ants/base.py Line 63 in c31a5a8
|
Let's split this discussion :). I move the stuff regarding ETS to #972. Here I will address the problem of @yarikoptic in #1218 only. |
@yarikoptic @satra @chrisfilo I think this side of the problem is solved, this is ready to merge. |
Conflicts: CHANGES
Conflicts: CHANGES nipype/algorithms/mesh.py nipype/interfaces/fsl/utils.py
[FIX] Created TVTKBaseInterface. Should fix #1218
No description provided.