-
Notifications
You must be signed in to change notification settings - Fork 98
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
System-dependent handling of saturated data values #188
Comments
Can you make a minimal example? I can it. But I haven't noticed this behavior so far (but maybe my install is not so up-to-date). |
The problem is nicely demonstrated by the |
Printscreen for the while screen or alt printscreen for the window
|
Mine looks okay: And just to be safe I downloaded
And got the same result. What GPU are you using? I wonder if there is some bug in your drivers and/or their interaction with VTK (which does the drawing at the lowest level). |
Here's what I see: Here's the output of
|
Yikes. Okay we're both running NVIDIA so that's not a likely culprit. But just to be safe, which drivers are you on? I'm on 375.79 (Ubuntu 16.04.2 latest repo version). Did you do the |
I am using the 378.13 driver. I'd prefer not to muck with that, as just getting the graphics card working set off a chain of problem that took the system down for days. Here's some other version information:
I don't think I have mayavi installed in the system python packages:
|
It's still a good idea IMO to turn off access in
Unfortunately this could be the source of error, and the only lead I can think of currently. So if you want to dig further it's probably worthwhile. Is this the Ubuntu repo version, or one from the NVIDIA website? If it's from the website, did you try the Ubuntu repo version? I usually find the repo versions require less maintenance than the website versions. |
Here is a failure to reproduce in a very simple script that uses mayavi directly:
|
I hadn't heard about this, but enabling your edits doesn't change anything. |
Ah, a successful lobectomy:
|
Nice. That can be pretty easily modified to be just a few lines requiring no nibabel, etc. So you could try to open an issue with Mayavi. But I doubt that it's their problem because it works over here and they don't interface with the graphics directly. The best thing would be to try to us Eventually my guess is that it will be a VTK / graphics-driver problem, so possible the VTK folks can fix it. But that will take quite some time to trickle back down :( |
My current thinking is that it is a problem with the (data)type of the lut object we are setting. i.e. if you interrogate the scalar lut in the original (working) example
it is not a numpy array but a I need to track down how to initialize one of those, but my hope is that it will solve the problem. I am also crossing my fingers that it will solve #83. |
That would be great. Even if it's possible we can work around the issue by changing this, though, the fact that it works on my system but not yours means there is a problem in an upstream package somewhere between the VTK type checking/setting (Mayavi vars) and execution of the compiled GPU code (NVIDIA drivers). But if we can fix it ourselves that's already a big help. |
Hey, progress. Based on enthought/mayavi#280 I tried
and it seems to work: I'll do some more testing for robustness and if everything looks good to a pysurfer PR. I'm not sure what to conclude about the upstream issues. |
I think it's the same as with any other potential upstream issue -- you can dig deeper into the problem by continuing to try to isolate the causes using more and more basic functionality or not, depending on time availability and interest. |
I am getting pysurfer set up on our new Ubuntu system and have discovered something unusual. Values that are plotted with
Brain.add_data
are transparent when they are below themin
or above themax
values. i.e. they are being treated as if they are below thethreshold
, even when I am not using a threshold. This behavior does not occur on my OSX system, using github master on both machines. It also does not occur when usingBrain.add_overlay
.The behavior can be reproduced using the
examples/plot_resting_correlations.py
script. Values around the "seed" focus are clipped/transparent in the final plot (but not in the intermediate plot created withadd_overlay
).Can anyone else reproduce this? Does anyone have any ideas what the issue is?
The text was updated successfully, but these errors were encountered: