<div dir="ltr"><div><div><div><div><div><div>Hi all,<br><br></div>In reading a MINC (1.0) image, I get errors printed:<br><br>ERROR: In /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, line 760<br>vtkMINCImageAttributes (0x1e5c010): The attribute zspace:step was not found.<br><br>ERROR: In /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, line 760<br>vtkMINCImageAttributes (0x1e5c010): The attribute zspace:start was not found.<br><br>ERROR: In /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, line 760<br>vtkMINCImageAttributes (0x1e5c010): The attribute yspace:step was not found.<br><br>ERROR: In /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, line 760<br>vtkMINCImageAttributes (0x1e5c010): The attribute yspace:start was not found.<br><br>ERROR: In /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, line 760<br>vtkMINCImageAttributes (0x1e5c010): The attribute xspace:step was not found.<br><br>ERROR: In /build/vtk6-GxcjsY/vtk6-6.2.0+dfsg1/IO/MINC/vtkMINCImageAttributes.cxx, line 760<br>vtkMINCImageAttributes (0x1e5c010): The attribute xspace:start was not found.<br><br></div>But these attributes are optional (and the reader correctly assumes 0 for the start attributes, and 1.0 for the step attributes). But it seems the function<br><br>    vtkMINCImageAttributes::GetAttributeValueAsDouble<br><br></div>(which is used by the reader) unconditionally prints an error with vtkErrorMacro if the requested attribute does not exist :/<br><br></div>Is there any way (from Python, VTK 6.2) that I can selectively suppress this somehow? I'd rather not have stuff printed on stderr for things that are harmless.<br><br></div>Cheers,<br></div>Elvis<br></div>