@@ -27,6 +27,7 @@ kernelspec:
2727## Import pywt
2828
2929<!-- TODO: check if needed anymore -->
30+
3031``` {code-cell}
3132from __future__ import print_function
3233import pywt
@@ -159,6 +160,7 @@ print(wp['aaaa'].data)
159160```
160161
161162<!-- not sure what "Ups" means in the next sentence -->
163+
162164Ups, we have reached the maximum level of decomposition for the ` 'aaaa' ` path,
163165which, by the way, was:
164166
@@ -186,42 +188,34 @@ just like with {class}`Node` and {class}`WaveletPacket` for the 1D case.).
186188print(wp['av'].data)
187189```
188190
189-
190191``` {code-cell}
191192print(wp['av'].path)
192193```
193194
194-
195195``` {code-cell}
196196print(wp['av'].node_name)
197197```
198198
199-
200199``` {code-cell}
201200print(wp['av'].parent.path)
202201```
203202
204-
205203``` {code-cell}
206204print(wp['av'].parent.data)
207205```
208206
209-
210207``` {code-cell}
211208print(wp['av'].level)
212209```
213210
214-
215211``` {code-cell}
216212print(wp['av'].maxlevel)
217213```
218214
219-
220215``` {code-cell}
221216print(wp['av'].mode)
222217```
223218
224-
225219### Collecting nodes
226220
227221We can get all nodes on the particular level using the
@@ -247,7 +241,6 @@ len(wp.get_level(1))
247241print([node.path for node in wp.get_level(1)])
248242```
249243
250-
251244- 2nd level of decomposition:
252245
253246``` {code-cell}
@@ -314,7 +307,7 @@ Note: just remember to not assign to the `node.data parameter directly (TODO).
314307
315308And reconstruct the data from the ` a ` , ` d ` , ` vh ` , ` vv ` , ` vd ` and ` h `
316309packets (Note that ` va ` node was not set and the WP tree is "not complete"
317- \- the ` va ` branch will be treated as * zero-array * ):
310+ \- the ` va ` branch will be treated as _ zero-array _ ):
318311
319312``` {code-cell}
320313print(new_wp.reconstruct(update=False))
@@ -371,7 +364,7 @@ print([n.path for n in new_wp.get_leaf_nodes()])
371364```
372365
373366Passing the ` decompose = True ` parameter to the method will force the WP
374- object to do a full decomposition up to the * maximum level * of decomposition:
367+ object to do a full decomposition up to the _ maximum level _ of decomposition:
375368
376369``` {code-cell}
377370paths = [n.path for n in new_wp.get_leaf_nodes(decompose=True)]
0 commit comments