We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcb138e commit 3c32e9fCopy full SHA for 3c32e9f
sfs/array.py
@@ -38,7 +38,7 @@ class ArrayData(namedtuple('ArrayData', 'x n a')):
38
39
def __repr__(self):
40
return 'ArrayData(\n' + ',\n'.join(
41
- ' {0}={1}'.format(name, repr(data).replace('\n', '\n '))
+ ' {}={}'.format(name, repr(data).replace('\n', '\n '))
42
for name, data in zip('xna', self)) + ')'
43
44
def take(self, indices):
sfs/mono/drivingfunction.py
@@ -51,7 +51,7 @@ def _wfs_point(omega, x0, n0, xs, c=None):
51
52
53
def wfs_25d_point(omega, x0, n0, xs, xref=[0, 0, 0], c=None, omalias=None):
54
- """Point source by 2.5-dimensional WFS.
+ r"""Point source by 2.5-dimensional WFS.
55
56
::
57
@@ -96,7 +96,7 @@ def _wfs_plane(omega, x0, n0, n=[0, 1, 0], c=None):
96
97
def wfs_25d_plane(omega, x0, n0, n=[0, 1, 0], xref=[0, 0, 0], c=None,
98
omalias=None):
99
- """Plane wave by 2.5-dimensional WFS.
+ r"""Plane wave by 2.5-dimensional WFS.
100
101
102
@@ -140,7 +140,7 @@ def _wfs_focused(omega, x0, n0, xs, c=None):
140
141
142
def wfs_25d_focused(omega, x0, n0, xs, xref=[0, 0, 0], c=None, omalias=None):
143
- """Focused source by 2.5-dimensional WFS.
+ r"""Focused source by 2.5-dimensional WFS.
144
145
146
sfs/mono/source.py
@@ -165,7 +165,7 @@ def point_averaged_intensity(omega, x0, n0, grid, c=None):
165
166
167
def point_dipole(omega, x0, n0, grid, c=None):
168
- """Point source with dipole characteristics.
+ r"""Point source with dipole characteristics.
169
170
Parameters
171
----------
sfs/plot.py
@@ -394,7 +394,7 @@ def vectors(v, grid, cmap='blacktransparent', headlength=3, headaxislength=2.5,
394
395
396
def add_colorbar(im, aspect=20, pad=0.5, **kwargs):
397
- """Add a vertical color bar to a plot.
+ r"""Add a vertical color bar to a plot.
398
399
400
sfs/util.py
@@ -431,7 +431,7 @@ def __getitem__(self, index):
431
432
433
return 'XyzComponents(\n' + ',\n'.join(
434
435
for name, data in zip('xyz', self)) + ')'
436
437
def make_property(index, doc):
0 commit comments