Stepping through Group Import in Volume Representation

My process is as follows:

  1. Import a group of .vtk data
  2. Change the Represtation to Volume
  3. The coloring automatically changes to the data array name (there is only one per file).
  4. Go to the next time (data) step.

Coloring immediately has a problem:

ERROR: In /builds/gitlab-kitware-sciviz-ci/build/superbuild/paraview/src/VTK/Common/ExecutionModel/vtkCompositeDataPipeline.cxx, line 154
vtkPVDataRepresentationPipeline (0x1a3f7960): Can not execute simple algorithm without output ports

ERROR: In /builds/gitlab-kitware-sciviz-ci/build/superbuild/paraview/src/VTK/Rendering/VolumeOpenGL2/vtkSmartVolumeMapper.cxx, line 279
vtkSmartVolumeMapper (0x18a39a90): Could not find the requested vtkDataArray! 3, 1, -1, data0001

I have used multiple different strategies to avoid this, but can’t seem to get it right. I know the extent of the data but have not found a way to properly create a LUT for this.

my_lut = pv.MakeBlueToRedLT(0, 1)

array_info = reader.PointData[data_array_name]
display1.RescaleTransferFunctionToDataRange(True, False)
AssignLookupTable(array_info, my_lut)

This results in a new error:

Traceback (most recent call last):
  File "<string>", line 37, in <module>
  File "/home/.../src/", line 73, in prepare_animation
    pv.AssignLookupTable(array_info, self.wf_lut)
  File ".../ParaView-5.9.1-MPI-Linux-Python3.8-64bit/lib/python3.8/site-packages/paraview/", line 1761, in AssignLookupTable
    if not presets.HasPreset(lutName):
TypeError: HasPreset argument 1: string or None required

Does anyone have an idea to get around the coloring TransferFunction catch22?