def load_wisdom(wisdomfile):
if wisdomfile is None:<EOL><INDENT>return<EOL><DEDENT>try:<EOL><INDENT>pyfftw.import_wisdom(pickle.load(open(wisdomfile, '<STR_LIT:rb>')))<EOL><DEDENT>except (IOError, TypeError) as e:<EOL><INDENT>log.warn("<STR_LIT>" % wisdomfile)<EOL>save_wisdom(wisdomfile)<EOL><DEDENT>
Prime FFTW with knowledge of which FFTs are best on this machine by
loading 'wisdom' from the file ``wisdomfile``