Skip to content

Commit 7507c52

Browse files
committed
MAINT: Fix missing doc, wrong doc order etc
1 parent b66a6bf commit 7507c52

File tree

11 files changed

+45
-38
lines changed

11 files changed

+45
-38
lines changed

odl/discr/discr_mappings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def __init__(self, ip_fset, partition, dspace, **kwargs):
185185
186186
Parameters
187187
----------
188-
fset : `FunctionSet`
188+
ip_fset : `FunctionSet`
189189
The non-discretized (abstract) set of functions to be
190190
discretized. The function domain must provide a
191191
`Set.contains_set` method.

odl/discr/grid.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,8 +1097,10 @@ def uniform_grid(min_pt, max_pt, shape, nodes_on_bdry=True):
10971097
10981098
Parameters
10991099
----------
1100-
min_pt, max_pt : float or sequence of float
1101-
Vectors of lower/upper ends of the intervals in the product.
1100+
min_pt : float or sequence of float
1101+
Vectors of lower ends of the intervals in the product.
1102+
max_pt : float or sequence of float
1103+
Vectors of upper ends of the intervals in the product.
11021104
shape : int or sequence of ints
11031105
Number of nodes per axis. Entries corresponding to degenerate axes
11041106
must be equal to 1.

odl/discr/lp_discr.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,8 +1188,10 @@ def uniform_discr(min_pt, max_pt, shape, exponent=2.0, interp='nearest',
11881188
11891189
Parameters
11901190
----------
1191-
min_pt, max_pt: float or sequence of floats
1192-
Minimum/maximum corners of the desired function domain.
1191+
min_pt : float or sequence of floats
1192+
Maximum corners of the desired function domain.
1193+
max_pt : float or sequence of floats
1194+
Minimum corners of the desired function domain.
11931195
shape : int or sequence of ints
11941196
Number of samples per axis.
11951197
exponent : positive float, optional
@@ -1334,10 +1336,14 @@ def uniform_discr_fromdiscr(discr, min_pt=None, max_pt=None,
13341336
----------
13351337
discr : `DiscreteLp`
13361338
Uniformly discretized space used as a template.
1337-
min_pt, max_pt: float or sequence of floats
1338-
Minimum/maximum corners of the desired function domain.
1339-
shape : int or sequence of ints
1339+
min_pt : float or sequence of floats, optional
1340+
Minimum corners of the desired function domain.
1341+
max_pt : float or sequence of floats, optional
1342+
Maximum corners of the desired function domain.
1343+
shape : int or sequence of ints, optional
13401344
Number of samples per axis.
1345+
cell_sides : array-like, optional
1346+
Side length of each cell.
13411347
exponent : positive float, optional
13421348
The parameter :math:`p` in :math:`L^p`. If the exponent is not
13431349
equal to the default 2.0, the space has no inner product.

odl/operator/operator.py

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,12 @@ def _default_call_out_of_place(op, x, **kwargs):
4545
4646
Parameters
4747
----------
48-
x : `domain` element
49-
An object in the operator domain. The operator is applied
50-
to it.
48+
op : `Operator`
49+
Operator to call
50+
x : ``op.domain`` element
51+
Point in which to call the operator.
52+
kwargs:
53+
Optional arguments to the operator.
5154
5255
Returns
5356
-------
@@ -65,17 +68,15 @@ def _default_call_in_place(op, x, out, **kwargs):
6568
6669
Parameters
6770
----------
68-
x : `domain` element
69-
An object in the operator domain. The operator is applied
70-
to it.
71-
72-
out : `range` element
71+
op : `Operator`
72+
Operator to call
73+
x : ``op.domain`` element
74+
Point in which to call the operator.
75+
out : ``op.range`` element
7376
An object in the operator range. The result of an operator
74-
evaluation.
75-
76-
Returns
77-
-------
78-
None
77+
evaluation is written here.
78+
kwargs:
79+
Optional arguments to the operator.
7980
"""
8081
out.assign(op.range.element(op._call_out_of_place(x, **kwargs)))
8182

@@ -168,9 +169,9 @@ def _dispatch_call_args(cls=None, bound_call=None, unbound_call=None,
168169
cls : `class`, optional
169170
The ``_call()`` method of this class is checked. If omitted,
170171
provide ``unbound_call`` instead to check directly.
171-
bound_call: callable, optional
172+
bound_call : callable, optional
172173
Check this bound method instead of ``cls``
173-
unbound_call: callable, optional
174+
unbound_call : callable, optional
174175
Check this unbound function instead of ``cls``
175176
attr : string, optional
176177
Check this attribute instead of ``_call``, e.g. ``__call__``
@@ -2021,8 +2022,8 @@ def __init__(self, operator, vector):
20212022
20222023
Parameters
20232024
----------
2024-
op : `Operator`
2025-
The domain of ``op`` must be a ``vector.space``.
2025+
operator : `Operator`
2026+
The domain of ``operator`` must be a ``vector.space``.
20262027
vector : ``op.domain`` element
20272028
The fixed element to multiply with.
20282029
"""

odl/phantom/transmission.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ def forbild(space, resolution=False, ear=True, value_type='density',
288288
The format the phantom should be given in.
289289
'density' returns floats in the range [0, 1.8] (g/cm^3)
290290
'materials' returns indices in the range [0, 7].
291-
scale : {'auto', 'cm', 'meters', 'mm'}
291+
scale : {'auto', 'cm', 'meters', 'mm'}, optional
292292
Controls how ``space`` should be rescaled to fit the definition of
293293
the forbild phantom, which is defined on the square
294294
[-12.8, 12.8] x [-12.8, 12.8] cm.

odl/solvers/functional/default_functionals.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,7 @@ def __init__(self, space, prior=None):
11901190
----------
11911191
space : `DiscreteLp` or `FnBase`
11921192
Domain of the functional.
1193-
g : ``space`` `element-like`, optional
1193+
prior : ``space`` `element-like`, optional
11941194
Data term, positive.
11951195
Default: if None it is take as the one-element.
11961196
"""
@@ -1452,7 +1452,7 @@ def __init__(self, space, prior=None):
14521452
----------
14531453
space : `DiscreteLp` or `FnBase`
14541454
Domain of the functional.
1455-
g : ``space`` `element-like`, optional
1455+
prior : ``space`` `element-like`, optional
14561456
Data term, positive.
14571457
Default: if None it is take as the one-element.
14581458
"""

odl/solvers/functional/functional.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ def __init__(self, func, linear_term):
819819
----------
820820
func : `Functional`
821821
Function corresponding to ``f``.
822-
translation : `domain` element
822+
linear_term : `domain` element
823823
Element in domain of ``func``, corresponding to the translation.
824824
"""
825825
if not isinstance(func, Functional):

odl/solvers/nonsmooth/proximal_operators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ def proximal_composition(proximal, operator, mu):
343343
344344
Parameters
345345
----------
346-
prox_factory : callable
346+
proximal : callable
347347
A factory function that, when called with a step size returns the
348348
proximal operator of ``F``
349349
operator : `Operator`

odl/solvers/util/callback.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def __init__(self, results=None, function=None):
137137
results : list, optional
138138
List in which to store the iterates.
139139
Default: new list (``[]``)
140-
results : callable, optional
140+
function : callable, optional
141141
Function to be called on all incoming results before storage.
142142
Default: copy
143143

odl/trafos/wavelet.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,10 @@ def __init__(self, range, nlevels, wavelet, pad_mode='constant',
372372
range : `DiscreteLp`
373373
Domain of the forward wavelet transform (the "image domain"),
374374
which is the range of this inverse transform.
375+
nlevels : positive int
376+
Number of scaling levels to be used in the decomposition. The
377+
maximum number of levels can be calculated with
378+
`pywt.dwt_max_level`.
375379
wavelet : string or `pywt.Wavelet`
376380
Specification of the wavelet to be used in the transform.
377381
If a string is given, it is converted to a `pywt.Wavelet`.
@@ -393,12 +397,6 @@ def __init__(self, range, nlevels, wavelet, pad_mode='constant',
393397
394398
``'dmey'``: Discrete FIR approximation of the Meyer wavelet
395399
396-
nlevels : positive int
397-
Number of scaling levels to be used in the decomposition. The
398-
maximum number of levels can be calculated with
399-
`pywt.dwt_max_level`.
400-
variant : {'forward', 'inverse', 'adjoint'}
401-
Wavelet transform variant to be created.
402400
pad_mode : string, optional
403401
Method to be used to extend the signal.
404402

0 commit comments

Comments
 (0)