Debian Codegraph @

debian/patches/0001-Mark-strings-containing-backslash-space-sequences-as.patch

raw
1 From: Roland Mas <[email protected]>
2 Date: Sun, 20 Oct 2024 17:22:19 +0200
3 Subject: Mark strings containing backslash-space sequences as raw literals
4
5 ---
6 arpys/postprocessing.py | 12 ++++++------
7 1 file changed, 6 insertions(+), 6 deletions(-)
8
9 diff --git a/arpys/postprocessing.py b/arpys/postprocessing.py
10 index aa8e5d7..ef0112c 100755
11 --- a/arpys/postprocessing.py
12 +++ b/arpys/postprocessing.py
13 @@ -1647,7 +1647,7 @@ def alt_a2k(angle, tilt, theta, phi, hv, a, b=None, c=None, work_func=4) :
14 # +---------+ #
15
16 def step_function_core(x, step_x=0, flip=False) :
17 - """ Implement a perfect step function f(x) with step at `step_x`::
18 + r""" Implement a perfect step function f(x) with step at `step_x`::
19
20 / 0 if x < step_x
21 |
22 @@ -1681,7 +1681,7 @@ def step_function(x, step_x=0, flip=False) :
23 return res.astype(float)
24
25 def step_core(x, step_x=0, flip=False) :
26 - """ Implement a step function f(x) with step at `step_x`::
27 + r""" Implement a step function f(x) with step at `step_x`::
28
29 / 0 if x < step_x
30 f(x) = {
31 @@ -1706,7 +1706,7 @@ def step_ufunc(x, step_x=0, flip=False) :
32 return res.astype(float)
33
34 def lorentzian(x, a=1, mu=0, gamma=1) :
35 - """
36 + r"""
37 Implement a Lorentzian curve f(x) given by the expression::
38
39 a
40 @@ -1738,7 +1738,7 @@ def lorentzian(x, a=1, mu=0, gamma=1) :
41 return a/( np.pi*gamma*( 1 + ((x-mu)/gamma)**2 ) )
42
43 def gaussian(x, a=1, mu=0, sigma=1) :
44 - """
45 + r"""
46 Implement a Gaussian bell curve f(x) given by the expression::
47
48 2
49 @@ -1764,7 +1764,7 @@ def gaussian(x, a=1, mu=0, sigma=1) :
50 return a * np.exp(-0.5 * (x-mu)**2 / sigma**2)
51
52 #def merge_functions(f, g, x0) :
53 -# """ Return a function F(x) which is defined by:
54 +# r""" Return a function F(x) which is defined by:
55 # / f(x) if x < x0
56 # F(x) = {
57 # \ g(x) if x >= x0
58 @@ -1782,7 +1782,7 @@ def gaussian(x, a=1, mu=0, sigma=1) :
59 # return F
60
61 def gaussian_step(x, step_x=0, a=1, mu=0, sigma=1, flip=False, after_step=None) :
62 - """ Implement (as a broadcastable np.ufunc) a sort-of convolution of a
63 + r""" Implement (as a broadcastable np.ufunc) a sort-of convolution of a
64 step-function with a Gaussian bell curve, defined as follows ::
65
66 / g(x, a, mu, sigma) if x < step_x