-
Notifications
You must be signed in to change notification settings - Fork 13
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
Newest VTK breaks some tests #155
Comments
@doutriaux1 @aashish24 All vtk_ui tests pass on my machine. @doutriaux1 Can you add a generated image to compare it with the baseline. Maybe will give us an idea of what is wrong. Can you give us your machine relevant details (OS, OpenGL, ...) |
will do. it's with both mac and linux (nox) using a nightly vtk-cdat. 2.8 vtk-cdat passes the tests |
I see. It is with mesa (nox). How do I install a nox version of cdat? How do I build a nox version of VTK? I assume that overwriting vcs and VTK should be the same. Thanks! |
My tests pass with the OpenGL hardware driver not with mesa. |
@danlipsa this should get you there with my opacity issue (#138), if you drop the infile name into the blank space in line 51 ( |
@danlipsa on the mac i get: Traceback (most recent call last):
File "make_paperplots.py", line 102, in <module>
put_png(canvas, bg_image, template=t) ; # Place png
File "make_paperplots.py", line 43, in put_png
canvas.backend.put_img_on_canvas(png_path,zoom=yscale,xOffset=xOffset,yOffset=-dist,units="pixels",fitToHeight=False)
File "/Users/doutriaux1/anaconda2/envs/nightly/lib/python2.7/site-packages/vcs/VTKPlots.py", line 975, in put_img_on_canvas
reader.SetFileName(filename)
AttributeError: 'NoneType' object has no attribute 'SetFileName' using vcs master and vtk with your sha1 |
@durack1 I get the following image. Is it right? |
@doutriaux1 I think you need to set Blue_marble_download = True so that the image is downloaded. |
@danlipsa yep, that's it.. The figure itself needs some work (needs better alignment, clean up axis labels, set overlay to be the same size at the canvas etc etc), but you've reproduced what I have.. In my understanding both panels should show opacity with low/zero values |
@danlipsa I thin k what happens here is that the first (top) plot is done right, then when the second plot is executed (bottom) somehow the priorities get messed up during update by VTK and the png gets back on top. Just a wild guess here. |
@durack1 @doutriaux1 So what is the correct output here? Both images should look like the bottom one? |
@durack1 @doutriaux1 Or, rather they should like the top, isn't it? @doutriaux1 You may be right, I'll look into that. |
@danlipsa thre bottom one looks better. |
@durack1 @doutriaux1 In the first image I removed the background png and changed the colors |
@doutriaux1 @durack1 Maybe I am wrong in the second case, maybe you see things through because of transparency. Anyway, the problem seems to be in the first case that the background image ends up on top of the plot. The background image should always be underneath the plot isn't it? |
@danlipsa the image that we're aiming for here is (the |
@danlipsa layers are supposed to come from template priority. In case of same priority it's supposed to be last one plotted gets on top (there's a mecanism in vcs to emulate this, I think I take priority*100 + number of plot calls on that layer) |
@doutriaux1 @durack1 @aashish24 The "VTK opacity" bug turned out to be a vcs bug. There were two problems:
|
thanks @danlipsa that is great! |
@doutriaux1 @durack1 @aashish24 I'll close this as we have all tests pass on both @doutriaux1 and my machines. If there are specific issues with certain platforms lets open more specific issues. |
@doutriaux1 will the following get me what I want?
I'm guessing I also need the latest
|
@danlipsa do you have the script that generated the figure above? it'd be great if you can drop that here so I can start from where you left off.. |
@durack1 Here you are. |
@danlipsa great, thanks! |
@danlipsa it seems the updated vcs/vtk also plots the continent outlines.. Was this the case in the previous version or is it something that has changed? I'm also curious as to how easy it is to turn that off (continent outlines) |
@danlipsa I wonder whether there is another bug in |
@durack1 What do you mean 'continents outlines'? Indeed, probably there is something related to templates and the area returned by the EZ-template. If I remember correctly, we do not compute to make sure labels fit. We always fit the plot in the specified area and then draw the labels on the outside - this means the labels can be cut. |
@durack1 Do you mind if you file another bug report for fixing EZ-template. We might want to reconsider how we draw a plot (see my previous post) but this might be difficult as it will break backward compatibility. |
@danlipsa good call, I'll generate a new issue for the EzTemplate stuff.. |
vtk_ui test do not show lines anymore
opacity seems broken according to @durack1
will add more as we encounter them
The text was updated successfully, but these errors were encountered: