Skip to content

Commit 0961b4c

Browse files
author
Klaus Sembritzki
committed
BF: Fix escape sequences that are deprecated in Python 3.6
https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
1 parent a67ae62 commit 0961b4c

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

nipy/algorithms/statistics/rft.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def binomial(n, k):
5656

5757

5858
def Q(dim, dfd=np.inf):
59-
""" Q polynomial
59+
r""" Q polynomial
6060
6161
If `dfd` == inf (the default), then Q(dim) is the (dim-1)-st Hermite
6262
polynomial:
@@ -518,7 +518,7 @@ def _quasi_polynomials(self, dim):
518518
return quasi_polynomials
519519

520520
def quasi(self, dim):
521-
""" (Quasi-)polynomial parts of EC density in dimension `dim`
521+
r""" (Quasi-)polynomial parts of EC density in dimension `dim`
522522
523523
- ignoring a factor of (2\pi)^{-(dim+1)/2} in front.
524524
"""

nipy/algorithms/statistics/tests/test_rft.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def test_Q():
4848

4949

5050
def K(dim=4, dfn=7, dfd=np.inf):
51-
"""
51+
r"""
5252
Determine the polynomial K in:
5353
5454
Worsley, K.J. (1994). 'Local maxima and the expected Euler
@@ -109,7 +109,7 @@ def F(x, dim, dfd=np.inf, dfn=1):
109109

110110

111111
def polyF(dim, dfd=np.inf, dfn=1):
112-
"""
112+
r"""
113113
Return the polynomial part of the EC density when evaluating the polynomial
114114
on the sqrt(F) scale (or sqrt(chi^2)=chi scale).
115115

nipy/core/image/image.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def reordered_axes(self, order=None):
287287
coordmap=new_cmap)
288288

289289
def renamed_axes(self, **names_dict):
290-
""" Return a new image with input (domain) axes renamed
290+
r""" Return a new image with input (domain) axes renamed
291291
292292
Axes renamed according to the input dictionary.
293293
@@ -313,7 +313,7 @@ def renamed_axes(self, **names_dict):
313313
return self.__class__.from_image(self, coordmap=new_cmap)
314314

315315
def renamed_reference(self, **names_dict):
316-
""" Return new image with renamed output (range) coordinates
316+
r""" Return new image with renamed output (range) coordinates
317317
318318
Coordinates renamed according to the dictionary
319319

nipy/core/reference/coordinate_system.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ def safe_dtype(*dtypes):
370370

371371

372372
def product(*coord_systems, **kwargs):
373-
"""Create the product of a sequence of CoordinateSystems.
373+
r"""Create the product of a sequence of CoordinateSystems.
374374
375375
The coord_dtype of the result will be determined by ``safe_dtype``.
376376

0 commit comments

Comments
 (0)