comparison icqsol_utils.py @ 14:56c8da4e2f9d draft

Uploaded
author greg
date Tue, 12 Jul 2016 14:44:30 -0400
parents 0f9045d2f336
children
comparison
equal deleted inserted replaced
13:0f9045d2f336 14:56c8da4e2f9d
46 return LaplaceMatrices(shape_data, max_edge_length=max_edge_length) 46 return LaplaceMatrices(shape_data, max_edge_length=max_edge_length)
47 47
48 48
49 def get_shape_manager(format=None, dataset_type=None): 49 def get_shape_manager(format=None, dataset_type=None):
50 # Instantiate a ShapeManager. 50 # Instantiate a ShapeManager.
51 if format is None and dataset_type is None: 51 return ShapeManager(file_format=format, vtk_dataset_type=dataset_type)
52 return ShapeManager()
53 if format == VTK:
54 return ShapeManager(file_format=format, vtk_dataset_type=dataset_type)
55 else:
56 return ShapeManager(file_format=format)
57 52
58 53
59 def get_temp_dir(prefix='tmp-vtk-', dir=None): 54 def get_temp_dir(prefix='tmp-vtk-', dir=None):
60 """ 55 """
61 Return a temporary directory. 56 Return a temporary directory.