# HG changeset patch # User greg # Date 1449329237 18000 # Node ID ac88faf9856443ef0548243dde8a303808f77f41 # Parent 8c0ae2f44ea4dd8a3fc702b9920a493375723f80 Uploaded diff -r 8c0ae2f44ea4 -r ac88faf98564 icqsol_color_surface_field.py --- a/icqsol_color_surface_field.py Sat Dec 05 10:27:08 2015 -0500 +++ b/icqsol_color_surface_field.py Sat Dec 05 10:27:17 2015 -0500 @@ -22,7 +22,7 @@ input_format, input_file_type = icqsol_utils.get_format_and_type(args.input_file_format_and_type) # Instantiate a ShapeManager for loading the input. -shape_mgr = ShapeManager(file_format='vtk', vtk_dataset_type=args.input_dataset_type) +shape_mgr = ShapeManager(file_format=icqsol_utils.VTK, vtk_dataset_type=args.input_dataset_type) # Get the vtkPolyData from the input dataset. vtk_poly_data = shape_mgr.loadAsVtkPolyData(args.input) @@ -38,7 +38,7 @@ tmp_output_path = icqsol_utils.get_temporary_file_path(tmp_dir, output_format) # Make sure the ShapeManager's writer is VTK POLYDATA. -shape_mgr.setWriter(file_format='vtk', vtk_dataset_type=icqsol_utils.POLYDATA) +shape_mgr.setWriter(file_format=icqsol_utils.VTK, vtk_dataset_type=icqsol_utils.POLYDATA) # Save the output. shape_mgr.saveVtkPolyData(vtk_poly_data=colored_vtk_poly_data, file_name=tmp_output_path, file_type=output_file_type)