I try to create ParaView Programmable Source by the code below. I can see the correct properties on ParaView “Information” tab and there are no errors but the actual geometry isn’t available. What is the problem?
import vtk, h5py
from vtk.util import numpy_support
filename = “/Users/mbg/Documents/PVGeo-Examples/h5/data60.h5”
f = h5py.File(filename, ‘r’)
data = f[‘RTData’][:]
I found a solution for this ParaView bug. We need to turn off checkbox “Map scalars” and edit script and click “Apply” (ignore all error messages) and turn on the checkbox again. Without this magic we can’t see the output geometries!