common.loads() should return time only if asked to

This commit is contained in:
Roman Zeyde
2014-07-21 13:29:27 +03:00
parent 5d71431c7c
commit 3ccf4ff188
5 changed files with 15 additions and 10 deletions

View File

@@ -29,7 +29,7 @@ if __name__ == '__main__':
import common
for fname in sys.argv[1:]:
t, x = common.load(open(fname, 'rb'))
t, x = common.load(open(fname, 'rb'), time=True)
pylab.figure()
pylab.title(fname)
spectrogram(t, x, common.Fs)