changeset 7:ca481c462940 draft

Uploaded
author greg
date Sat, 05 Dec 2015 10:26:35 -0500
parents 0d67a350bb1d
children 73b2ad3ba32f
files icqsol_add_surface_field_from_expression.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/icqsol_add_surface_field_from_expression.py	Sat Dec 05 10:26:26 2015 -0500
+++ b/icqsol_add_surface_field_from_expression.py	Sat Dec 05 10:26:35 2015 -0500
@@ -25,7 +25,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)
@@ -50,7 +50,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)