Skip to content

Commit e7fade9

Browse files
Fixed docstring to render example code properly (#263)
1 parent 10beeb3 commit e7fade9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

s2fft/utils/signal_generator.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ def complex_el_and_m_indices(L: int, min_el: int) -> tuple[np.ndarray, np.ndarra
3939
4040
Equivalent to nested list-comprehension based implementation
4141
42-
```
43-
el_indices, m_indices = np.array(
44-
[(el, m) for el in range(min_el, L) for m in range(1, el + 1)]
45-
).T
46-
```
42+
.. code-block:: python
43+
44+
el_indices, m_indices = np.array(
45+
[(el, m) for el in range(min_el, L) for m in range(1, el + 1)]
46+
).T
4747
4848
For `L, min_el = 1024, 0`, this implementation is around 80x quicker in
4949
benchmarks compared to list-comprehension implementation.

0 commit comments

Comments
 (0)