Skip to content

[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

Merged
merged 8 commits into from
Dec 9, 2015

Conversation

oesteban
Copy link
Contributor

No description provided.

@oesteban oesteban added the bug label Sep 16, 2015
have_tvtk = False

try:
from tvtk.api import tvtk
Copy link
Member

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.

Copy link
Contributor Author

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)

@chrisgorgo
Copy link
Member

This might be a better way of doing this:

if ( ALT_ITKv4_THREAD_LIMIT_VARIABLE in self.inputs.environ ):

@oesteban
Copy link
Contributor Author

Let's split this discussion :). I move the stuff regarding ETS to #972. Here I will address the problem of @yarikoptic in #1218 only.

@oesteban
Copy link
Contributor Author

@yarikoptic @satra @chrisfilo I think this side of the problem is solved, this is ready to merge.

chrisgorgo added a commit that referenced this pull request Dec 9, 2015
[FIX] Created TVTKBaseInterface. Should fix #1218
@chrisgorgo chrisgorgo merged commit 6a8f6d6 into nipy:master Dec 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants