# HG changeset patch # User Nicolas Saunier # Date 1281138347 14400 # Node ID b5d007612e16834d054573ff32e8dbc0b58f72d6 # Parent 74d2de078bafc0051327705c10083acafade7cb7 added filename util diff -r 74d2de078baf -r b5d007612e16 python/utils.py --- a/python/utils.py Fri Aug 06 01:09:44 2010 -0400 +++ b/python/utils.py Fri Aug 06 19:45:47 2010 -0400 @@ -161,6 +161,10 @@ else: return filename +def cleanFilename(s): + 'cleans filenames obtained when contatenating figure characteristics' + return s.replace(' ','-').replace('.','') + def listfiles(dirname, extension, remove = False): '''Returns the list of files with the extension in the directory dirname If remove is True, the filenames are stripped from the extension'''