def export_local_wisdom(self): filename = self.local_wisdom_filename() if os.path.exists(filename): os.remove(filename) dir = os.path.dirname(filename) pyami.fileutil.mkdirs(dir) fftw3.export_wisdom_to_file(filename)
def __del__(self): try: fftw3.export_wisdom_to_file(self.wisdomfile) except TypeError: pass