()
| 300 | |
| 301 | |
| 302 | def _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 | |
| 315 | def compareImageWithSavedImage(src_img, img_fname, threshold=0.05): |
| 316 | """Compares a source image (src_img, which is a vtkImageData) with |
no test coverage detected