MCPcopy Create free account
hub / github.com/Kitware/VTK / _GetController

Function _GetController

Wrapping/Python/vtkmodules/test/Testing.py:302–313  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

300
301
302def _GetController():
303 try:
304 from vtkmodules.vtkParallelMPI import vtkMPIController
305 controller = vtkMPIController();
306
307 # If MPI was not initialized, we do not want to use MPI
308 if not controller.GetCommunicator():
309 return None
310 return controller
311 except:
312 pass
313 return None
314
315def compareImageWithSavedImage(src_img, img_fname, threshold=0.05):
316 """Compares a source image (src_img, which is a vtkImageData) with

Callers 1

Calls 2

vtkMPIControllerClass · 0.50
GetCommunicatorMethod · 0.45

Tested by

no test coverage detected