Package PyFoam :: Package Applications :: Module PlotHelpers
[hide private]
[frames] | no frames]

Source Code for Module PyFoam.Applications.PlotHelpers

 1  #  ICE Revision: $Id: /local/openfoam/Python/PyFoam/PyFoam/Applications/PlotHelpers.py 5985 2009-12-21T21:05:52.364284Z bgschaid  $  
 2  """ 
 3  Helper-functions for the plots 
 4  """ 
 5  from os import path 
 6   
7 -def cleanFilename(orig):
8 """ 9 Clean the filename in such a way that it is suitable for use in 10 HTML and LaTeX-documents 11 """ 12 dName,fName=path.split(orig) 13 fName,ext=path.splitext(fName) 14 15 # HTML doesn't like spaces 16 fName=fName.replace(' ','space') 17 # LaTeX doesn't like dots 18 fName=fName.replace('.','dot') 19 result=path.join(dName,fName)+ext 20 21 return result
22