changeset 6:918771601157 draft

Uploaded
author greg
date Sat, 05 Dec 2015 10:29:25 -0500
parents b2ded1c154a8
children abb58cabca82
files icqsol_refine_shape.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)