Skip to content

Commit a862acb

Browse files
committed
fix: rst cleanup
1 parent cf8da85 commit a862acb

File tree

7 files changed

+21
-18
lines changed

7 files changed

+21
-18
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ For improved image quality, embed these steps in a more complex reconstruction p
7676

7777
Want to see more ?
7878

79-
- Check the `Documentation <https://mind-inria.github.io/mri-nufft/>`_
79+
- Check the `Documentation <https://mind-inria.github.io/mri-nufft/>`__
8080

8181
- Or go visit the `Examples <https://mind-inria.github.io/mri-nufft/generated/autoexamples/index.html>`_
8282

@@ -88,7 +88,7 @@ MRI-nufft is available on `PyPi <https://pypi.org/project/mri-nufft>`__ and can
8888

8989
pip install mri-nufft
9090

91-
Additionally, you will have to install at least one NUFFT computation backend. See the `Documentation <https://mind-inria.github.io/mri-nufft/getting_started.html#choosing-a-nufft-backend>`_ for more guidance.
91+
Additionally, you will have to install at least one NUFFT computation backend. See the `Documentation <https://mind-inria.github.io/mri-nufft/getting_started.html#choosing-a-nufft-backend>`__ for more guidance.
9292
Typically we recommend::
9393

9494
pip install mri-nufft[finufft]

docs/explanations/mrinufft_convention.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.. include:: <isonum.txt>
22
.. _mri-nufft-interface:
3+
34
===============================
45
MRI-NUFFT Interfaces Convention
56
===============================

docs/install.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,17 @@ If you are using ``uv`` as your package installer you will need to do
4141
Development Version
4242
~~~~~~~~~~~~~~~~~~~
4343

44-
If you want to modify the mri-nufft code base
44+
If you want to modify the mri-nufft code base:
4545

4646
.. code-block:: sh
4747
4848
git clone https://github.com:mind-inria/mri-nufft
4949
pip install -e ./mri-nufft[dev,doc,extra,io,autodiff,tests,cufinufft,gpunufft,finufft]
5050
51-
or using ``uv``
51+
or using ``uv``:
5252

5353
.. code-block:: sh
5454
5555
git clone https://github.com:mind-inria/mri-nufft
5656
uv venv
57-
uv sync --all-extras --no-build-isolation --no-extra <backend-you-don't-need>
57+
uv sync --all-extras --no-build-isolation --no-extra <backend-you-dont-need>

src/mrinufft/extras/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def fse_simulation(
107107
Returns
108108
-------
109109
signal : np.ndarray
110-
Simulated signal of shape (nTE*nTR, *M0).
110+
Simulated signal of shape ``(nTE*nTR, *M0)``.
111111
112112
"""
113113
# preprocess sequence parameters

src/mrinufft/extras/field_map.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def make_t2smap(shape, t2svalue=15.0, mask=None):
8585
Returns
8686
-------
8787
np.ndarray
88-
T2* map of shape (*shape) in [ms].
88+
T2* map of shape ``(*shape)`` in [ms].
8989
np.ndarray, optional
9090
Spatial support binary mask.
9191

src/mrinufft/operators/autodiff.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ class MRINufftAutoGrad(torch.nn.Module):
125125
k-space trajectory (samples locations).
126126
paired_batch: bool, default False
127127
If True, an extra dimension for batchs is considered for the data.
128-
Data dimensions for inputs and output will be `(batch_size,
129-
nufft_op.n_batchs, nufft_op.n_coils, nufft_op.n_samples)` for k-space
130-
and `(batch_Size, nufft_op.n_batchs, 1, *nufft_op.shape)` for image
128+
Data dimensions for inputs and output will be ``(batch_size,
129+
nufft_op.n_batchs, nufft_op.n_coils, nufft_op.n_samples)`` for k-space
130+
and ``(batch_Size, nufft_op.n_batchs, 1, *nufft_op.shape)`` for image
131131
(with smaps support).
132132
The NUFFT operator will support different processing different k-space /
133133
image data and corresponding sensitivity map pairs. This is particularly
@@ -136,10 +136,10 @@ class MRINufftAutoGrad(torch.nn.Module):
136136
Notes
137137
-----
138138
- Even with batch_size, the data is processed sequentially.
139-
- Unlike the `n_batchs` argument of the base nufft_operator,
140-
`batch_size` allows for batching on other data than images and
139+
- Unlike the ``n_batchs`` argument of the base nufft_operator,
140+
``batch_size`` allows for batching on other data than images and
141141
k-space. By using :meth:`op_batched` and :mod:`adj_op_batched`. In
142-
this context `n_batchs` of the NUFFT operator can be seen
142+
this context ``n_batchs`` of the NUFFT operator can be seen
143143
as a number of MR echos.
144144
"""
145145

@@ -176,16 +176,17 @@ def op(self, x, smaps=None, samples=None):
176176
Image data of shape ``(batch_size, nufft_op.n_batchs, (1 if smaps
177177
else nufft_op.n_coils), *nufft_op.shape)``
178178
smaps: Tensor, optional
179-
Sensitivity maps of shape ``(batch_size, nufft_op.n_coils, *nufft_op.shape)
179+
Sensitivity maps
180+
with shape ``(batch_size, nufft_op.n_coils, *nufft_op.shape)``
180181
samples: Tensor, optional
181182
Samples for the batches of shape ``(batch_size, nufft_op.n_samples,
182183
nufft_op.ndim)``
183184
184185
Returns
185186
-------
186187
Tensor:
187-
with shape `(batch_size, nufft_op.n_batchs, nufft_op.n_coils,
188-
nufft_op.n_samples)`
188+
with shape ``(batch_size, nufft_op.n_batchs, nufft_op.n_coils,
189+
nufft_op.n_samples)``
189190
190191
Notes
191192
-----
@@ -205,7 +206,8 @@ def adj_op(self, kspace, smaps=None, samples=None):
205206
with shape
206207
``(batch_size, nufft_op.n_batchs, nufft_op.n_coils, nufft_op.n_samples)``
207208
smaps: Tensor, optional
208-
Sensitivity maps of shape ``(batch_size, nufft_op.n_coils, *nufft_op.shape)
209+
Sensitivity maps with shape
210+
``(batch_size, nufft_op.n_coils, *nufft_op.shape)``
209211
samples: Tensor, optional
210212
Samples for the batches of shape
211213
``(batch_size, nufft_op.n_samples, nufft_op.ndim)``

src/mrinufft/operators/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ def compute_density(self, method: Callable[..., NDArray] = None):
434434
- If a string, the method should be registered in the density registry.
435435
- If a callable, it should take the samples and the shape as input.
436436
- If a dict, it should have a key 'name', to determine which method to use.
437-
other items will be used as kwargs.
437+
other items will be used as kwargs.
438438
- If an array, it should be of shape (Nsamples,) and will be used as is.
439439
- If `True`, the method `pipe` is chosen as default estimation method.
440440

0 commit comments

Comments
 (0)