# HG changeset patch # User greg # Date 1449329365 18000 # Node ID 9187716011571531fdb7de938c78e22c3b3951aa # Parent b2ded1c154a8aa4ece841121bfe6b77f8f1364f5 Uploaded diff -r b2ded1c154a8 -r 918771601157 icqsol_refine_shape.py --- a/icqsol_refine_shape.py Sat Dec 05 10:29:12 2015 -0500 +++ b/icqsol_refine_shape.py Sat Dec 05 10:29:25 2015 -0500 @@ -20,7 +20,7 @@ tmp_dir = icqsol_utils.get_temp_dir() # Instantiate a ShapeManager for loading the input. -if input_format == 'vtk': +if input_format == icqsol_utils.VTK: shape_mgr = ShapeManager(file_format=input_format, vtk_dataset_type=args.input_dataset_type) else: shape_mgr = ShapeManager(file_format=input_format) @@ -36,7 +36,7 @@ tmp_output_path = icqsol_utils.get_temporary_file_path(tmp_dir, output_format) # Make sure the ShapeManager's writer is vtk. -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=vtk_poly_data, file_name=tmp_output_path, file_type=output_file_type)