projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b56229
)
python/lib/aubio/slicing.py: use close not del, let garbage collector close the last...
author
Paul Brossier
<piem@piem.org>
Fri, 24 Jan 2014 01:23:35 +0000
(22:23 -0300)
committer
Paul Brossier
<piem@piem.org>
Fri, 24 Jan 2014 01:23:35 +0000
(22:23 -0300)
python/lib/aubio/slicing.py
patch
|
blob
|
history
diff --git
a/python/lib/aubio/slicing.py
b/python/lib/aubio/slicing.py
index
e96a0d8
..
7d1d0f9
100644
(file)
--- a/
python/lib/aubio/slicing.py
+++ b/
python/lib/aubio/slicing.py
@@
-75,12
+75,9
@@
def slice_source_at_stamps(source_file, timestamps, timestamps_end = None,
g(vec[start:remaining], remaining - start)
#print "closing region", "remaining", remaining
# close this file
- del g
+ g.close()
elif read > start:
# write all the samples
g(vec[start:read], read - start)
total_frames += read
if read < hopsize: break
-
- # close the last file
- del g