]> git.parisson.com Git - telemeta.git/commitdiff
suppress debugging leftovers and console progress output: doesn't play well with...
authorolivier <>
Mon, 8 Mar 2010 17:46:54 +0000 (17:46 +0000)
committerolivier <>
Mon, 8 Mar 2010 17:46:54 +0000 (17:46 +0000)
telemeta/templatetags/telemeta_utils.py
telemeta/visualization/wav2png.py

index 512470619daf6099562a933ec10ef126d67e420f..9b98df5dc2415f10d6499990ca42ad147f6d77f3 100644 (file)
@@ -254,7 +254,6 @@ def render_flatpage(content):
             if i == 0:
                 line += reverse(urlname)
             elif urlname[:1] != '/':
-                print '|%s|' % urlname
                 line += reverse('telemeta-flatpage', args=[path + '/../' + urlname])
             else:
                 line += urlname
index 8b0cce3db7b768c6fef80a42cd14d92c2f676597..0525e008b89ef55c6d66fd82ff245f25345c70dd 100755 (executable)
@@ -405,10 +405,6 @@ def create_wavform_png(input_filename, output_filename_w, image_width, image_hei
     
     for x in range(image_width):
         
-        if x % (image_width/10) == 0:
-            sys.stdout.write('.')
-            sys.stdout.flush()
-            
         seek_point = int(x * samples_per_pixel)
         next_seek_point = int((x + 1) * samples_per_pixel)
         
@@ -418,8 +414,6 @@ def create_wavform_png(input_filename, output_filename_w, image_width, image_hei
         waveform.draw_peaks(x, peaks, spectral_centroid)
     
     waveform.save(output_filename_w)
-    
-    print " done"
 
 def create_spectrogram_png(input_filename, output_filename_s, image_width, image_height, fft_size,
                            bg_color = None, color_scheme = None):
@@ -432,10 +426,6 @@ def create_spectrogram_png(input_filename, output_filename_s, image_width, image
     
     for x in range(image_width):
    
-        if x % (image_width/10) == 0:
-            sys.stdout.write('.')
-            sys.stdout.flush()
-            
         seek_point = int(x * samples_per_pixel)
         next_seek_point = int((x + 1) * samples_per_pixel)  
         (spectral_centroid, db_spectrum) = processor.spectral_centroid(seek_point) 
@@ -443,5 +433,4 @@ def create_spectrogram_png(input_filename, output_filename_s, image_width, image
     
     spectrogram.save(output_filename_s)
     
-    print " done"