Mercurial > hg > plosone_underreview
comparison notebooks/test_music_segments.ipynb @ 40:e6e10013e11c branch-tests
small edits
author | Maria Panteli |
---|---|
date | Fri, 15 Sep 2017 11:55:00 +0100 |
parents | 46b2c713cc73 |
children | 90f8a2ea6f6f |
comparison
equal
deleted
inserted
replaced
39:0e70021f251e | 40:e6e10013e11c |
---|---|
26 ] | 26 ] |
27 }, | 27 }, |
28 { | 28 { |
29 "cell_type": "code", | 29 "cell_type": "code", |
30 "execution_count": 13, | 30 "execution_count": 13, |
31 "metadata": {}, | 31 "metadata": { |
32 "collapsed": true | |
33 }, | |
32 "outputs": [], | 34 "outputs": [], |
33 "source": [ | 35 "source": [ |
34 "all_Yaudio = []\n", | 36 "all_Yaudio = []\n", |
35 "all_Y = []\n", | 37 "all_Y = []\n", |
36 "for filename in filenames:\n", | 38 "for filename in filenames:\n", |
42 ] | 44 ] |
43 }, | 45 }, |
44 { | 46 { |
45 "cell_type": "code", | 47 "cell_type": "code", |
46 "execution_count": 5, | 48 "execution_count": 5, |
47 "metadata": {}, | 49 "metadata": { |
50 "collapsed": true | |
51 }, | |
48 "outputs": [], | 52 "outputs": [], |
49 "source": [ | 53 "source": [ |
50 "uniq_audio, uniq_counts = np.unique(all_Yaudio, return_counts=True)" | 54 "uniq_audio, uniq_counts = np.unique(all_Yaudio, return_counts=True)" |
51 ] | 55 ] |
52 }, | 56 }, |
58 ] | 62 ] |
59 }, | 63 }, |
60 { | 64 { |
61 "cell_type": "code", | 65 "cell_type": "code", |
62 "execution_count": 8, | 66 "execution_count": 8, |
63 "metadata": {}, | 67 "metadata": { |
68 "collapsed": false | |
69 }, | |
64 "outputs": [ | 70 "outputs": [ |
65 { | 71 { |
66 "name": "stdout", | 72 "name": "stdout", |
67 "output_type": "stream", | 73 "output_type": "stream", |
68 "text": [ | 74 "text": [ |
84 ] | 90 ] |
85 }, | 91 }, |
86 { | 92 { |
87 "cell_type": "code", | 93 "cell_type": "code", |
88 "execution_count": 17, | 94 "execution_count": 17, |
89 "metadata": {}, | 95 "metadata": { |
96 "collapsed": false | |
97 }, | |
90 "outputs": [ | 98 "outputs": [ |
91 { | 99 { |
92 "name": "stdout", | 100 "name": "stdout", |
93 "output_type": "stream", | 101 "output_type": "stream", |
94 "text": [ | 102 "text": [ |
110 ] | 118 ] |
111 }, | 119 }, |
112 { | 120 { |
113 "cell_type": "code", | 121 "cell_type": "code", |
114 "execution_count": 18, | 122 "execution_count": 18, |
115 "metadata": {}, | 123 "metadata": { |
124 "collapsed": false | |
125 }, | |
116 "outputs": [ | 126 "outputs": [ |
117 { | 127 { |
118 "name": "stdout", | 128 "name": "stdout", |
119 "output_type": "stream", | 129 "output_type": "stream", |
120 "text": [ | 130 "text": [ |
141 ] | 151 ] |
142 }, | 152 }, |
143 { | 153 { |
144 "cell_type": "code", | 154 "cell_type": "code", |
145 "execution_count": 23, | 155 "execution_count": 23, |
146 "metadata": {}, | 156 "metadata": { |
157 "collapsed": false | |
158 }, | |
147 "outputs": [ | 159 "outputs": [ |
148 { | 160 { |
149 "name": "stdout", | 161 "name": "stdout", |
150 "output_type": "stream", | 162 "output_type": "stream", |
151 "text": [ | 163 "text": [ |
176 ] | 188 ] |
177 }, | 189 }, |
178 { | 190 { |
179 "cell_type": "code", | 191 "cell_type": "code", |
180 "execution_count": 22, | 192 "execution_count": 22, |
181 "metadata": {}, | 193 "metadata": { |
194 "collapsed": false | |
195 }, | |
182 "outputs": [ | 196 "outputs": [ |
183 { | 197 { |
184 "name": "stdout", | 198 "name": "stdout", |
185 "output_type": "stream", | 199 "output_type": "stream", |
186 "text": [ | 200 "text": [ |
227 "file_extension": ".py", | 241 "file_extension": ".py", |
228 "mimetype": "text/x-python", | 242 "mimetype": "text/x-python", |
229 "name": "python", | 243 "name": "python", |
230 "nbconvert_exporter": "python", | 244 "nbconvert_exporter": "python", |
231 "pygments_lexer": "ipython2", | 245 "pygments_lexer": "ipython2", |
232 "version": "2.7.12" | 246 "version": "2.7.11" |
233 } | 247 } |
234 }, | 248 }, |
235 "nbformat": 4, | 249 "nbformat": 4, |
236 "nbformat_minor": 1 | 250 "nbformat_minor": 1 |
237 } | 251 } |