incorrect code in `raster_wrangler.py`
On a ParaView dashboard machine (bigmac), this code fails with following errors:
Traceback (most recent call last):
File "/Users/kitware/buildbot-slave/paraview-bigmac-osx-shared-debug_clang_gui_opengl2_python/build/lib/site-packages/paraview/cinemareader.py", line 122, in translate_query
layers = self.qt.translateQuery(q)
File "/Users/kitware/buildbot-slave/paraview-bigmac-osx-shared-debug_clang_gui_opengl2_python/build/lib/site-packages/cinema_python/QueryTranslator_SpecB.py", line 231, in translateQuery
self._QueryTranslator__loadLayers(allLayers)
File "/Users/kitware/buildbot-slave/paraview-bigmac-osx-shared-debug_clang_gui_opengl2_python/build/lib/site-packages/cinema_python/QueryTranslator.py", line 54, in __loadLayers
layers[l].loadImages(self.__store)
File "/Users/kitware/buildbot-slave/paraview-bigmac-osx-shared-debug_clang_gui_opengl2_python/build/lib/site-packages/cinema_python/LayerSpec.py", line 76, in loadImages
foundPaths = store.get(query)
File "/Users/kitware/buildbot-slave/paraview-bigmac-osx-shared-debug_clang_gui_opengl2_python/build/lib/site-packages/cinema_python/cinema_store.py", line 790, in get
fcontent = self._load_data(filename, q)
File "/Users/kitware/buildbot-slave/paraview-bigmac-osx-shared-debug_clang_gui_opengl2_python/build/lib/site-packages/cinema_python/cinema_store.py", line 749, in _load_data
data = self.raster_wrangler.rgbreader(doc_file)
File "/Users/kitware/buildbot-slave/paraview-bigmac-osx-shared-debug_clang_gui_opengl2_python/build/lib/site-packages/cinema_python/raster_wrangler.py", line 192, in rgbreader
height = imageslice.shape[1]
NameError: global name 'imageslice' is not defined
Looking closely at the code, it does seem incorrect. It's using an undefined imageslice
variable.