FIX: Fix for VTKNoneArray#729
Conversation
Codecov Report
@@ Coverage Diff @@
## master #729 +/- ##
=========================================
- Coverage 51.77% 51.57% -0.2%
=========================================
Files 259 259
Lines 23424 23424
Branches 3200 3200
=========================================
- Hits 12127 12081 -46
- Misses 10509 10558 +49
+ Partials 788 785 -3
Continue to review full report at Codecov.
|
prabhuramachandran
left a comment
There was a problem hiding this comment.
Thanks but I would appreciate a tiny test case for this, I am not sure it should be too hard to make one. You could put the test in the test_mlab_integration.py or any suitable file.
|
I've spent about half an hour trying to figure out how to get it to the state where there is a VTKNoneArray in there from the Mayavi tests and source with no luck. I'll take some more time trying to remember which use case elicited the error in the first place and try to do some debugging there (but IIRC, it's a pain because it's in a complex interactive Traits-based GUI). |
|
Ahh, sorry to hear that. This is why it is useful to have the test case. :) You can create a VTK dataset perhaps to trigger it without having to go through mlab/mayavi if that helps. I will wait a bit in case the light bulb goes on but if it doesn't, and it seems too hard, I'll see if I can think of a test and add it. Thanks! |
I've spent another half an hour trying to do this with something like the following in But this gives: I cannot figure out how to get the |
ba3a2c3 to
e656732
Compare
|
Okay I finally found a test that passes on my system. But it also exposes that there is some updating wackiness in that calling |
|
Sorry for the delay, looks good, will merge this and look at your other PR. |
|
Thanks! |
This fixes a bug I've hit because the check for
VTKNoneArrayis in the wrong spot, so you can get an error on line 83:That looks like: