def write_fft(fft_features, fn):
 (base_fn, ext) = os.path.splitext(fn)
 data_fn = (base_fn + '.fft')
 np.save(data_fn, fft_features)
 print ('Written ' % data_fn)

def write_fft ( fft_features , fn ) : ( base_fn , ext ) = os . path . splitext ( fn ) data_fn = ( base_fn + '.fft' ) np . save ( data_fn , fft_features ) print ( 'Written ' % data_fn )
write the fft features to separate files to speed up processing .