Commit 210c2ef
authored
Add the introduction part to Snippet Tutorial (#397)
* Add the introduction part
* Add textual context and Improve the flow and figures
* [WIP] Revise the intro section and legend of figures
* Add the introduction part
* Add textual context and Improve the flow and figures
* [WIP] Revise the intro section and legend of figures
* [WIP]: save temp changes
* add the slices of indices for each snippet in the output
* use stumpy.mplstyle to refactor the rcparams
* remove blank line after docstring of a function
* add the plot of snippets regime to check out the functionality of snippets_regime added to snippets modules
* correct the block of code for plotting the snippets regimes
* Change snippet_regime from list to numpy array
* update the notebook according to the updated version of snippet module
* resolve issues raised by flake8
* remove snippet tutorial local file from its developing branch tto allow merge from the main
* Copy back Snippet Tutorial notebook to the Snipperts_Tutorial branch
* allow git to track the file (?)
* copy back Snippet Tutorial notebook
* checking out older version of snippet tutorial notebook
* checkout file in a parent
* get back to the ours modified version of the notebook file
* remove snippet tutorial notebook on the branch
* add snippet tutorial notebook from ancestor common file
* handle merge manually: add changes of ours to theirs version of the file
* move the function _get_mask_slices(mask) to core module
* revise the snippet_regime calculation: use list to append new slices since it is faster than appending to numpy array
* slight modification on snippet_regime calculation
* revise the notebook since the structure of snippet_regimes, returned by the snippets and aampdist_snippets modules, is changed
* add dtype=object according to numpy warning. Revise docstring to include snippets_regime
* Run all cells of notebooks to make sure things are okay
* revise docstring (small modification)
* revise the snippet_regime caclulation to get 2D NumPy array
* revise slicing the snippets regimes returned by the snippet module
* create a new variable to reduce the length of lines of code that caused error in flake8
* add unit test for function _get_mask_slices
* resolve indentation. and, move naive implementation to the TOP of the test file
* move the naive implementation of _get_mask_slices function to naive module
* add snippets_regimes in the naive implementation mpdist_snippets and aampdist_snippet
* add snippet_regime test to the unit test
* add snippet_regime to the unit test
* minor modification on the format
* reformat the code to follow Black code formatter style
* add snippet_regimes to the non_normalized decorator unit test1 parent 3df750b commit 210c2ef
File tree
9 files changed
+490
-83
lines changed- docs
- stumpy
- tests
9 files changed
+490
-83
lines changedLarge diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
181 | 184 | | |
182 | 185 | | |
183 | 186 | | |
| |||
213 | 216 | | |
214 | 217 | | |
215 | 218 | | |
| 219 | + | |
216 | 220 | | |
217 | 221 | | |
218 | 222 | | |
| |||
231 | 235 | | |
232 | 236 | | |
233 | 237 | | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
234 | 245 | | |
235 | 246 | | |
236 | 247 | | |
237 | 248 | | |
238 | 249 | | |
239 | 250 | | |
240 | 251 | | |
| 252 | + | |
241 | 253 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1806 | 1806 | | |
1807 | 1807 | | |
1808 | 1808 | | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
| 1815 | + | |
| 1816 | + | |
| 1817 | + | |
| 1818 | + | |
| 1819 | + | |
| 1820 | + | |
| 1821 | + | |
| 1822 | + | |
| 1823 | + | |
| 1824 | + | |
| 1825 | + | |
| 1826 | + | |
| 1827 | + | |
| 1828 | + | |
| 1829 | + | |
| 1830 | + | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
190 | 193 | | |
191 | 194 | | |
192 | 195 | | |
| |||
222 | 225 | | |
223 | 226 | | |
224 | 227 | | |
| 228 | + | |
225 | 229 | | |
226 | 230 | | |
227 | 231 | | |
| |||
240 | 244 | | |
241 | 245 | | |
242 | 246 | | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
243 | 254 | | |
244 | 255 | | |
245 | 256 | | |
246 | 257 | | |
247 | 258 | | |
248 | 259 | | |
249 | 260 | | |
| 261 | + | |
250 | 262 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1110 | 1110 | | |
1111 | 1111 | | |
1112 | 1112 | | |
| 1113 | + | |
1113 | 1114 | | |
1114 | 1115 | | |
1115 | 1116 | | |
| |||
1132 | 1133 | | |
1133 | 1134 | | |
1134 | 1135 | | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
1135 | 1143 | | |
1136 | 1144 | | |
1137 | 1145 | | |
1138 | 1146 | | |
1139 | 1147 | | |
1140 | 1148 | | |
1141 | 1149 | | |
| 1150 | + | |
1142 | 1151 | | |
1143 | 1152 | | |
1144 | 1153 | | |
| |||
1173 | 1182 | | |
1174 | 1183 | | |
1175 | 1184 | | |
| 1185 | + | |
1176 | 1186 | | |
1177 | 1187 | | |
1178 | 1188 | | |
| |||
1195 | 1205 | | |
1196 | 1206 | | |
1197 | 1207 | | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
1198 | 1215 | | |
1199 | 1216 | | |
1200 | 1217 | | |
1201 | 1218 | | |
1202 | 1219 | | |
1203 | 1220 | | |
1204 | 1221 | | |
| 1222 | + | |
1205 | 1223 | | |
1206 | 1224 | | |
1207 | 1225 | | |
| |||
1351 | 1369 | | |
1352 | 1370 | | |
1353 | 1371 | | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
50 | 55 | | |
51 | 56 | | |
52 | 57 | | |
| |||
60 | 65 | | |
61 | 66 | | |
62 | 67 | | |
| 68 | + | |
63 | 69 | | |
64 | 70 | | |
65 | 71 | | |
66 | 72 | | |
67 | 73 | | |
68 | 74 | | |
69 | 75 | | |
| 76 | + | |
70 | 77 | | |
71 | 78 | | |
72 | 79 | | |
| |||
84 | 91 | | |
85 | 92 | | |
86 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
87 | 97 | | |
88 | 98 | | |
89 | 99 | | |
| |||
97 | 107 | | |
98 | 108 | | |
99 | 109 | | |
| 110 | + | |
100 | 111 | | |
101 | 112 | | |
102 | 113 | | |
103 | 114 | | |
104 | 115 | | |
105 | 116 | | |
106 | 117 | | |
| 118 | + | |
107 | 119 | | |
108 | 120 | | |
109 | 121 | | |
| |||
121 | 133 | | |
122 | 134 | | |
123 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
827 | 827 | | |
828 | 828 | | |
829 | 829 | | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
| 303 | + | |
303 | 304 | | |
304 | 305 | | |
305 | 306 | | |
306 | 307 | | |
307 | 308 | | |
308 | 309 | | |
309 | 310 | | |
| 311 | + | |
310 | 312 | | |
311 | 313 | | |
0 commit comments