comparison icqsol_compose_shapes.py @ 6:01ce1844eacb draft

Uploaded
author greg
date Sat, 05 Dec 2015 10:27:57 -0500
parents e3350521105e
children c2ab4a89b06d
comparison
equal deleted inserted replaced
5:ba13195a3e24 6:01ce1844eacb
20 20
21 # Load the shapes. 21 # Load the shapes.
22 for (expression_var, dataset_path, galaxy_ext, vtk_dataset_type) in args.shape_datasets: 22 for (expression_var, dataset_path, galaxy_ext, vtk_dataset_type) in args.shape_datasets:
23 # Define the file format and type. 23 # Define the file format and type.
24 format, file_type = icqsol_utils.get_format_and_type(galaxy_ext) 24 format, file_type = icqsol_utils.get_format_and_type(galaxy_ext)
25 if format == 'vtk': 25 if format == icqsol_utils.VTK:
26 shape_mgr.setReader(file_format=format, vtk_dataset_type=vtk_dataset_type) 26 shape_mgr.setReader(file_format=format, vtk_dataset_type=vtk_dataset_type)
27 else: 27 else:
28 shape_mgr.setReader(file_format=format) 28 shape_mgr.setReader(file_format=format)
29 icqsol_path = icqsol_utils.get_input_file_path(tmp_dir, dataset_path, format) 29 icqsol_path = icqsol_utils.get_input_file_path(tmp_dir, dataset_path, format)
30 shape_tuple = (expression_var, shape_mgr.loadAsShape(icqsol_path)) 30 shape_tuple = (expression_var, shape_mgr.loadAsShape(icqsol_path))