File: 0006-SyntaxWarning.patch

package info (click to toggle)
python-ltfatpy 1.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 41,408 kB
  • sloc: ansic: 8,546; python: 6,470; makefile: 15
file content (260 lines) | stat: -rw-r--r-- 7,619 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
From: Debian Science Maintainers
 <debian-science-maintainers@lists.alioth.debian.org>
Date: Fri, 31 Jan 2025 07:33:28 +0000
Subject: SyntaxWarning

---
 ltfatpy/fourier/dcti.py      | 2 +-
 ltfatpy/fourier/dctii.py     | 2 +-
 ltfatpy/fourier/dctiii.py    | 2 +-
 ltfatpy/fourier/dctiv.py     | 2 +-
 ltfatpy/fourier/dft.py       | 2 +-
 ltfatpy/fourier/dsti.py      | 2 +-
 ltfatpy/fourier/dstii.py     | 2 +-
 ltfatpy/fourier/dstiii.py    | 2 +-
 ltfatpy/fourier/dstiv.py     | 2 +-
 ltfatpy/fourier/idft.py      | 2 +-
 ltfatpy/fourier/psech.py     | 2 +-
 ltfatpy/gabor/dgt.py         | 2 +-
 ltfatpy/gabor/idgt.py        | 2 +-
 ltfatpy/gabor/phaselock.py   | 2 +-
 ltfatpy/gabor/tfplot.py      | 2 +-
 ltfatpy/sigproc/firwin.py    | 2 +-
 ltfatpy/sigproc/normalize.py | 2 +-
 ltfatpy/sigproc/rms.py       | 2 +-
 18 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/ltfatpy/fourier/dcti.py b/ltfatpy/fourier/dcti.py
index d9726bd..18da62a 100644
--- a/ltfatpy/fourier/dcti.py
+++ b/ltfatpy/fourier/dcti.py
@@ -70,7 +70,7 @@ from ltfatpy.tools.postpad import postpad
 
 
 def dcti(f, L=None, dim=None):
-    """Discrete Cosine Transform type I
+    r"""Discrete Cosine Transform type I
 
     - Usage:
 
diff --git a/ltfatpy/fourier/dctii.py b/ltfatpy/fourier/dctii.py
index 844791d..5380c02 100644
--- a/ltfatpy/fourier/dctii.py
+++ b/ltfatpy/fourier/dctii.py
@@ -72,7 +72,7 @@ from ltfatpy.tools.postpad import postpad
 
 
 def dctii(f, L=None, dim=None):
-    """Discrete Cosine Transform type II
+    r"""Discrete Cosine Transform type II
 
     - Usage:
 
diff --git a/ltfatpy/fourier/dctiii.py b/ltfatpy/fourier/dctiii.py
index 21ea618..dd8ef12 100644
--- a/ltfatpy/fourier/dctiii.py
+++ b/ltfatpy/fourier/dctiii.py
@@ -70,7 +70,7 @@ from ltfatpy.tools.postpad import postpad
 
 
 def dctiii(f, L=None, dim=None):
-    """Discrete Cosine Transform type III
+    r"""Discrete Cosine Transform type III
 
     - Usage:
 
diff --git a/ltfatpy/fourier/dctiv.py b/ltfatpy/fourier/dctiv.py
index 244d8c1..ac53a0c 100644
--- a/ltfatpy/fourier/dctiv.py
+++ b/ltfatpy/fourier/dctiv.py
@@ -70,7 +70,7 @@ from ltfatpy.tools.postpad import postpad
 
 
 def dctiv(f, L=None, dim=None):
-    """Discrete Cosine Transform type IV
+    r"""Discrete Cosine Transform type IV
 
     - Usage:
 
diff --git a/ltfatpy/fourier/dft.py b/ltfatpy/fourier/dft.py
index 04a7465..c806f72 100644
--- a/ltfatpy/fourier/dft.py
+++ b/ltfatpy/fourier/dft.py
@@ -70,7 +70,7 @@ from ltfatpy.comp.assert_sigreshape_post import assert_sigreshape_post
 
 
 def dft(f, N=None, dim=0):
-    """Normalized Discrete Fourier Transform
+    r"""Normalized Discrete Fourier Transform
 
     - Usage:
 
diff --git a/ltfatpy/fourier/dsti.py b/ltfatpy/fourier/dsti.py
index 7f3eb95..a65fa6c 100644
--- a/ltfatpy/fourier/dsti.py
+++ b/ltfatpy/fourier/dsti.py
@@ -70,7 +70,7 @@ from ltfatpy.tools.postpad import postpad
 
 
 def dsti(f, L=None, dim=None):
-    """Discrete Sine Transform type I
+    r"""Discrete Sine Transform type I
 
     - Usage:
 
diff --git a/ltfatpy/fourier/dstii.py b/ltfatpy/fourier/dstii.py
index 9a0cbf0..95fc301 100644
--- a/ltfatpy/fourier/dstii.py
+++ b/ltfatpy/fourier/dstii.py
@@ -70,7 +70,7 @@ from ltfatpy.tools.postpad import postpad
 
 
 def dstii(f, L=None, dim=None):
-    """Discrete Sine Transform type II
+    r"""Discrete Sine Transform type II
 
     - Usage:
 
diff --git a/ltfatpy/fourier/dstiii.py b/ltfatpy/fourier/dstiii.py
index 1edb37c..ab8bc38 100644
--- a/ltfatpy/fourier/dstiii.py
+++ b/ltfatpy/fourier/dstiii.py
@@ -70,7 +70,7 @@ from ltfatpy.tools.postpad import postpad
 
 
 def dstiii(f, L=None, dim=None):
-    """Discrete Sine Transform type III
+    r"""Discrete Sine Transform type III
 
     - Usage:
 
diff --git a/ltfatpy/fourier/dstiv.py b/ltfatpy/fourier/dstiv.py
index d13e161..8b16137 100644
--- a/ltfatpy/fourier/dstiv.py
+++ b/ltfatpy/fourier/dstiv.py
@@ -70,7 +70,7 @@ from ltfatpy.tools.postpad import postpad
 
 
 def dstiv(f, L=None, dim=None):
-    """Discrete Sine Transform type IV
+    r"""Discrete Sine Transform type IV
 
     - Usage:
 
diff --git a/ltfatpy/fourier/idft.py b/ltfatpy/fourier/idft.py
index 79de91c..65582e8 100644
--- a/ltfatpy/fourier/idft.py
+++ b/ltfatpy/fourier/idft.py
@@ -70,7 +70,7 @@ from ltfatpy.comp.assert_sigreshape_post import assert_sigreshape_post
 
 
 def idft(c, N=None, dim=0):
-    """Inverse Normalized Discrete Fourier Transform
+    r"""Inverse Normalized Discrete Fourier Transform
 
     - Usage:
 
diff --git a/ltfatpy/fourier/psech.py b/ltfatpy/fourier/psech.py
index 13ae6a7..eec6c71 100644
--- a/ltfatpy/fourier/psech.py
+++ b/ltfatpy/fourier/psech.py
@@ -65,7 +65,7 @@ import numpy as np
 
 
 def psech(L, tfr=None, s=None, **kwargs):
-    """Sampled, periodized hyperbolic secant
+    r"""Sampled, periodized hyperbolic secant
 
     - Usage:
 
diff --git a/ltfatpy/gabor/dgt.py b/ltfatpy/gabor/dgt.py
index c924959..6b8560f 100644
--- a/ltfatpy/gabor/dgt.py
+++ b/ltfatpy/gabor/dgt.py
@@ -74,7 +74,7 @@ from ltfatpy.comp.assert_sigreshape_post import assert_sigreshape_post
 
 
 def dgt(f, g, a, M, L=None, pt='freqinv'):
-    """Discrete Gabor Transform
+    r"""Discrete Gabor Transform
 
     - Usage:
 
diff --git a/ltfatpy/gabor/idgt.py b/ltfatpy/gabor/idgt.py
index ce9e14d..32577a7 100644
--- a/ltfatpy/gabor/idgt.py
+++ b/ltfatpy/gabor/idgt.py
@@ -70,7 +70,7 @@ from ltfatpy.comp.comp_sigreshape_post import comp_sigreshape_post
 
 
 def idgt(coef, g, a, Ls=None, pt='freqinv'):
-    """Inverse discrete Gabor transform
+    r"""Inverse discrete Gabor transform
 
     - Usage:
 
diff --git a/ltfatpy/gabor/phaselock.py b/ltfatpy/gabor/phaselock.py
index 02e3688..ec7c1de 100644
--- a/ltfatpy/gabor/phaselock.py
+++ b/ltfatpy/gabor/phaselock.py
@@ -65,7 +65,7 @@ import numpy as np
 
 
 def phaselock(c, a):
-    """Phaselock Gabor coefficients
+    r"""Phaselock Gabor coefficients
 
     - Usage:
 
diff --git a/ltfatpy/gabor/tfplot.py b/ltfatpy/gabor/tfplot.py
index 96e8b2d..da8f986 100644
--- a/ltfatpy/gabor/tfplot.py
+++ b/ltfatpy/gabor/tfplot.py
@@ -72,7 +72,7 @@ def tfplot(coef, step, yr, fs=None, dynrange=None, normalization='db',
            tc=False, clim=None, plottype='image', colorbar=True, display=True,
            time='Time', frequency='Frequency', samples='samples',
            normalized='normalized'):
-    """Plot coefficient matrix on the TF plane
+    r"""Plot coefficient matrix on the TF plane
 
     - Input parameters:
 
diff --git a/ltfatpy/sigproc/firwin.py b/ltfatpy/sigproc/firwin.py
index 64eb723..85909ed 100644
--- a/ltfatpy/sigproc/firwin.py
+++ b/ltfatpy/sigproc/firwin.py
@@ -68,7 +68,7 @@ from ltfatpy.sigproc.normalize import normalize
 
 
 def firwin(name, M=0, x=None, **kwargs):
-    """ Returns a FIR window of length *M* of type *name*.
+    r""" Returns a FIR window of length *M* of type *name*.
 
     - Usage:
 
diff --git a/ltfatpy/sigproc/normalize.py b/ltfatpy/sigproc/normalize.py
index 37d6ab7..536d0a6 100644
--- a/ltfatpy/sigproc/normalize.py
+++ b/ltfatpy/sigproc/normalize.py
@@ -73,7 +73,7 @@ from ltfatpy.gabor.s0norm import s0norm
 
 
 def normalize(f, norm='2', dim=None):
-    """Normalize input signal by specified norm
+    r"""Normalize input signal by specified norm
 
     - Usage:
 
diff --git a/ltfatpy/sigproc/rms.py b/ltfatpy/sigproc/rms.py
index 5e41146..f7c4226 100644
--- a/ltfatpy/sigproc/rms.py
+++ b/ltfatpy/sigproc/rms.py
@@ -71,7 +71,7 @@ from ltfatpy.comp.assert_sigreshape_post import assert_sigreshape_post
 
 
 def rms(f, ac=False, dim=None):
-    """RMS value of signal
+    r"""RMS value of signal
 
     - Usage: