From 110824f72417933a64c8785abfceb79f8d7afeda Mon Sep 17 00:00:00 2001 From: Pete Shadbolt Date: Wed, 14 Jan 2015 20:35:20 +0000 Subject: [PATCH] Inverted commas --- spectrogram.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spectrogram.py b/spectrogram.py index f0cc1f2..3e11427 100644 --- a/spectrogram.py +++ b/spectrogram.py @@ -19,8 +19,8 @@ def make_wav(image_filename): image = np.sum(image, axis = 2).T[:, ::-1] image = image**2 - output_file = wave.open(image_filename+'.wav', 'w') - output_file.setparams((1, 2, 44100, 0, 'NONE', 'not compressed')) + output_file = wave.open(image_filename+".wav", "w") + output_file.setparams((1, 2, 44100, 0, "NONE", "not compressed")) pb = ProgressBar().start() n = float(len(image)) @@ -32,7 +32,7 @@ def make_wav(image_filename): print "Wrote %s.wav" % image_filename -if __name__ == '__main__': +if __name__ == "__main__": import sys make_wav(sys.argv[1])