Skip to content

Commit 1a7c595

Browse files
committed
doc: switch func to callable everywhere in docstrings
1 parent 3d54fef commit 1a7c595

5 files changed

Lines changed: 22 additions & 22 deletions

File tree

pylops/signalprocessing/radon2d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def _indices_2d(
5858
5959
Parameters
6060
----------
61-
f : :obj:`func`
61+
f : :obj:`callable`
6262
Function computing values of parametric line for stacking
6363
x : :obj:`numpy.ndarray`
6464
Spatial axis (must be symmetrical around 0 and with sampling 1)

pylops/signalprocessing/radon3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def _indices_3d(
6666
6767
Parameters
6868
----------
69-
f : :obj:`func`
69+
f : :obj:`callable`
7070
Function computing values of parametric line for stacking
7171
y : :obj:`numpy.ndarray`
7272
Slow spatial axis (must be symmetrical around 0 and with sampling 1)

pylops/utils/backend.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def get_module(backend: str = "numpy") -> ModuleType:
8282
8383
Returns
8484
-------
85-
mod : :obj:`func`
85+
mod : :obj:`callable`
8686
Module to be used to process array (:mod:`numpy` or :mod:`cupy` or :mod:`jax`)
8787
8888
"""
@@ -102,7 +102,7 @@ def get_module_name(mod: ModuleType) -> str:
102102
103103
Parameters
104104
----------
105-
mod : :obj:`func`
105+
mod : :obj:`callable`
106106
Module to be used to process array (:mod:`numpy` or :mod:`cupy` or :mod:`jax`)
107107
108108
Returns
@@ -133,7 +133,7 @@ def get_array_module(x: npt.ArrayLike) -> ModuleType:
133133
134134
Returns
135135
-------
136-
mod : :obj:`func`
136+
mod : :obj:`callable`
137137
Module to be used to process array
138138
(:mod:`numpy`, :mod:`cupy`, or , :mod:`jax`)
139139
@@ -154,7 +154,7 @@ def get_normalize_axis_index() -> Callable:
154154
155155
Returns
156156
-------
157-
f : :obj:`func`
157+
f : :obj:`callable`
158158
Function to be used to process array
159159
160160
"""
@@ -171,7 +171,7 @@ def get_convolve(x: npt.ArrayLike) -> Callable:
171171
172172
Returns
173173
-------
174-
f : :obj:`func`
174+
f : :obj:`callable`
175175
Function to be used to process array
176176
177177
"""
@@ -196,7 +196,7 @@ def get_fftconvolve(x: npt.ArrayLike) -> Callable:
196196
197197
Returns
198198
-------
199-
f : :obj:`func`
199+
f : :obj:`callable`
200200
Function to be used to process array
201201
202202
"""
@@ -221,7 +221,7 @@ def get_oaconvolve(x: npt.ArrayLike) -> Callable:
221221
222222
Returns
223223
-------
224-
f : :obj:`func`
224+
f : :obj:`callable`
225225
Function to be used to process array
226226
227227
"""
@@ -250,7 +250,7 @@ def get_correlate(x: npt.ArrayLike) -> Callable:
250250
251251
Returns
252252
-------
253-
f : :obj:`func`
253+
f : :obj:`callable`
254254
Function to be used to process array
255255
256256
"""
@@ -275,7 +275,7 @@ def get_add_at(x: npt.ArrayLike) -> Callable:
275275
276276
Returns
277277
-------
278-
f : :obj:`func`
278+
f : :obj:`callable`
279279
Function to be used to process array
280280
281281
"""
@@ -298,7 +298,7 @@ def get_sliding_window_view(x: npt.ArrayLike) -> Callable:
298298
299299
Returns
300300
-------
301-
f : :obj:`func`
301+
f : :obj:`callable`
302302
Function to be used to process array
303303
304304
"""
@@ -321,7 +321,7 @@ def get_block_diag(x: npt.ArrayLike) -> Callable:
321321
322322
Returns
323323
-------
324-
f : :obj:`func`
324+
f : :obj:`callable`
325325
Function to be used to process array
326326
327327
"""
@@ -346,7 +346,7 @@ def get_toeplitz(x: npt.ArrayLike) -> Callable:
346346
347347
Returns
348348
-------
349-
f : :obj:`func`
349+
f : :obj:`callable`
350350
Function to be used to process array
351351
352352
"""
@@ -371,7 +371,7 @@ def get_csc_matrix(x: npt.ArrayLike) -> Callable:
371371
372372
Returns
373373
-------
374-
f : :obj:`func`
374+
f : :obj:`callable`
375375
Function to be used to process array
376376
377377
"""
@@ -394,7 +394,7 @@ def get_sparse_eye(x: npt.ArrayLike) -> Callable:
394394
395395
Returns
396396
-------
397-
f : :obj:`func`
397+
f : :obj:`callable`
398398
Function to be used to process array
399399
400400
"""
@@ -417,7 +417,7 @@ def get_lstsq(x: npt.ArrayLike) -> Callable:
417417
418418
Returns
419419
-------
420-
f : :obj:`func`
420+
f : :obj:`callable`
421421
Function to be used to process array
422422
423423
"""
@@ -440,7 +440,7 @@ def get_sp_fft(x: npt.ArrayLike) -> Callable:
440440
441441
Returns
442442
-------
443-
f : :obj:`func`
443+
f : :obj:`callable`
444444
Function to be used to process array
445445
446446
"""

pylops/utils/wavelets.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def klauder(
7575
Time axis (positive part including zero sample)
7676
f : :obj:`tuple`, optional
7777
Frequency sweep
78-
taper : :obj:`func`, optional
78+
taper : :obj:`callable`, optional
7979
Taper to apply to wavelet (must be a function that
8080
takes the size of the window as input
8181
@@ -123,7 +123,7 @@ def ormsby(
123123
Time axis (positive part including zero sample)
124124
f : :obj:`tuple`, optional
125125
Frequency range
126-
taper : :obj:`func`, optional
126+
taper : :obj:`callable`, optional
127127
Taper to apply to wavelet (must be a function that
128128
takes the size of the window as input
129129
@@ -179,7 +179,7 @@ def ricker(
179179
Time axis (positive part including zero sample)
180180
f0 : :obj:`float`, optional
181181
Central frequency
182-
taper : :obj:`func`, optional
182+
taper : :obj:`callable`, optional
183183
Taper to apply to wavelet (must be a function that
184184
takes the size of the window as input
185185

pylops/waveeqprocessing/lsm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def solve(self, d: NDArray, solver: Callable = lsqr, **kwargs_solver):
152152
d : :obj:`numpy.ndarray`
153153
Input data of size :math:`\lbrack n_s \times n_r
154154
\times n_t \rbrack`
155-
solver : :obj:`func`, optional
155+
solver : :obj:`callable`, optional
156156
Solver to be used for inversion
157157
**kwargs_solver
158158
Arbitrary keyword arguments for chosen ``solver``

0 commit comments

Comments
 (0)