Skip to content

Commit 21e0158

Browse files
DOC: Clean up unneeded type conversions
1 parent 5a331b2 commit 21e0158

File tree

4 files changed

+4
-24
lines changed

4 files changed

+4
-24
lines changed

doc/source/regression/dwt-idwt.md

+2-7
Original file line numberDiff line numberDiff line change
@@ -101,17 +101,12 @@ data length but also on the :class:Wavelet type (particularly on its
101101
To find out what the size of the output data will be, use the {func}`dwt_coeff_len`
102102
function:
103103

104-
<!-- # int() is for normalizing Python integers and long integers
105-
# for documentation tests -->
106-
<!-- though the doctests might not be needed anymore because MyST is testing -->
107-
<!-- these by executing the notebooks? -->
108-
109104
```{code-cell}
110-
int(pywt.dwt_coeff_len(data_len=len(x), filter_len=w.dec_len, mode='symmetric'))
105+
pywt.dwt_coeff_len(data_len=len(x), filter_len=w.dec_len, mode='symmetric')
111106
```
112107

113108
```{code-cell}
114-
int(pywt.dwt_coeff_len(len(x), w, 'symmetric'))
109+
pywt.dwt_coeff_len(len(x), w, 'symmetric')
115110
```
116111

117112
and the length of the output is:

doc/source/regression/wavelet.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -120,15 +120,12 @@ print(w.family_name)
120120

121121
2. Decomposition ({attr}`~Wavelet.dec_len`) and reconstruction ({attr}`~.Wavelet.rec_len`) filter lengths:
122122

123-
<!-- # int() is for normalizing longs and ints for doctest -->
124-
<!-- TODO: FIXME: note: might not be needed anymore -->
125-
126123
```{code-cell}
127-
int(w.dec_len)
124+
w.dec_len
128125
```
129126

130127
```{code-cell}
131-
int(w.rec_len)
128+
w.rec_len
132129
```
133130

134131
3. Orthogonality ({attr}`~Wavelet.orthogonal`) and biorthogonality ({attr}`~Wavelet.biorthogonal`):

doc/source/regression/wp.md

-9
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,6 @@ kernelspec:
3636

3737
+++
3838

39-
<!-- not sure if this is needed anymore? -->
40-
41-
```{code-cell}
42-
---
43-
tags: [hide-input]
44-
---
45-
from __future__ import print_function
46-
```
47-
4839
# Wavelet Packets
4940

5041
## `import pywt` and construct a helper function

doc/source/regression/wp2d.md

-3
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,7 @@ kernelspec:
4040

4141
## Import pywt
4242

43-
<!-- TODO: check if needed anymore -->
44-
4543
```{code-cell}
46-
from __future__ import print_function
4744
import pywt
4845
import numpy
4946
```

0 commit comments

Comments
 (0)