I’m currently using Paraview 5.12.0 and I cannot get the default Python Algorithm filter to render. My data is a .pvtu file along with the accompanying .vtu files for an unstructured grid. I’ve copied and pasted the finished Python Algorithm from here (appropriately modifying the name from V to Q0 to match my data).
When I try to apply my filter, the colorbar looks correct but the mesh is completely invisible. If I then use the Slice tool to make the data 2D and then apply the example Python Algorithm filter then it renders fine.
Finally, if I create a cylinder source and then give it some data with a Programmable Filter (I just outputted the z-values) the Python Algorithm works perfectly.
It seems to me that there must be some kind of a bug, but I’m not sure how to get it to show up without using my data (perhaps it has something to do with the data type, or the fact that a Reader object is involved?). Any help is appreciated.
Two follow-up questions: Is there any way to make the Python Algorithm method work like the Programmable Filter method (i.e. have the output mesh be the same as the input, just with different data on top)? And if so, is it possible to add that to the official documentation?
I’m a little bit confused now. In my algorithm_example.py on line 25 I do a ShallowCopy, but in that case my output is not rendering. What is the issue here?
I would expect the tutorial here to work on any reasonable mesh type (including an unstructured mesh in the .pvtu format), given that there’s no stipulations on mesh type in the tutorial. For whatever reason it seems to set the output type to None, which I think is unexpected behavior.
Also I wouldn’t know where to find the information necessary to fix the filter (like you had previously) so I wonder if linking to a more in-depth set of documentation would be useful.
Does not specify the output type, this is why the output is created as a point set.
One way to fix this is to use the method I shared above to conserve the output.
Another way to fix this is to set the output to a fixed type as it is done in the step below in the tutorial: