Skip to content

Commit 64bf40e

Browse files
Merge pull request #3427 from jessica-mitchell/fix-sphinx
Fix sphinx warnings in docs
2 parents 922faf0 + 7c02160 commit 64bf40e

File tree

18 files changed

+85
-134
lines changed

18 files changed

+85
-134
lines changed

doc/htmldoc/_ext/list_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
from sphinx.application import Sphinx
2929
from sphinx.util.docutils import SphinxDirective
3030

31-
logging.basicConfig(level=logging.WARNING)
3231
log = logging.getLogger(__name__)
32+
log.setLevel(level=logging.WARNING)
3333

3434

3535
class listnode(nodes.General, nodes.Element):

doc/htmldoc/_ext/model_tag_setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@
2727
from pathlib import Path
2828
from pprint import pformat
2929

30-
logging.basicConfig(level=logging.INFO)
3130
log = logging.getLogger(__name__)
32-
31+
log.setLevel(level=logging.WARNING)
3332
# The following function is used in two other functions, in two separate Sphinx events
3433

3534

doc/htmldoc/community.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Contact us
6464
Get help
6565
--------
6666

67-
.. grid::
67+
.. grid::
6868

6969
.. grid-item-card:: Command line help
7070
:link: command_help
@@ -102,7 +102,7 @@ Explore the NEST ecosystem
102102
:link: https://nest-simulator.org
103103
:link-type: url
104104

105-
.. grid-item-card:: Become a NEST initiative member
105+
.. grid-item-card:: Become a NEST initiative member
106106
:link: https://www.nest-initiative.org/
107107
:link-type: url
108108

@@ -113,6 +113,4 @@ Explore the NEST ecosystem
113113
:hidden:
114114

115115
related_projects
116-
citing-nest
117116
getting_help
118-

doc/htmldoc/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@
214214
"extmod": ("https://nest-extension-module.readthedocs.io/en/latest/", None),
215215
}
216216

217+
suppress_warnings = ["config.cache"]
217218

218219
nitpick_ignore = [
219220
("py:class", "None"),

doc/htmldoc/developer_space/index.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Developer space
66
Here is all documentation pertaining to the development of NEST.
77
It is documentation for anyone needing to touch the code or documentation.
88

9-
.. grid:: 3
9+
.. grid:: 3
1010

11-
.. grid-item-card::
11+
.. grid-item-card::
1212
:link-type: ref
1313
:link: dev_install
1414
:class-card: sd-bg-success sd-text-white
@@ -112,11 +112,11 @@ Developer guides
112112

113113
.. toctree::
114114
:maxdepth: 1
115-
:hidden:
115+
:hidden:
116116
:glob:
117117

118118
workflows/*
119-
workflows/documentation_workflow/*
119+
workflows/documentation_workflow/index
120120
guidelines/*
121121
guidelines/styleguide/styleguide
122122
guidelines/styleguide/vim_support_sli

doc/htmldoc/examples/index.rst

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,6 @@ PyNEST examples
313313
../auto_examples/urbanczik_synapse_example
314314
../auto_examples/iaf_tum_2000_short_term_depression
315315
../auto_examples/iaf_tum_2000_short_term_facilitation
316-
../auto_examples/compartmental_model/receptors_and_current
317-
../auto_examples/compartmental_model/two_comps
318316
../auto_examples/lin_rate_ipn_network
319317
../auto_examples/rate_neuron_dm
320318
../auto_examples/brunel_alpha_nest
@@ -323,20 +321,6 @@ PyNEST examples
323321
../auto_examples/brunel_exp_multisynapse_nest
324322
../auto_examples/brunel_alpha_evolution_strategies
325323
../auto_examples/sonata_example/index
326-
../auto_examples/sonata_example/sonata_network
327-
../auto_examples/spatial/conncomp
328-
../auto_examples/spatial/conncon_sources
329-
../auto_examples/spatial/conncon_targets
330-
../auto_examples/spatial/connex
331-
../auto_examples/spatial/connex_ew
332-
../auto_examples/spatial/ctx_2n
333-
../auto_examples/spatial/gaussex
334-
../auto_examples/spatial/grid_iaf
335-
../auto_examples/spatial/grid_iaf_irr
336-
../auto_examples/spatial/grid_iaf_oc
337-
../auto_examples/spatial/test_3d
338-
../auto_examples/spatial/test_3d_exp
339-
../auto_examples/spatial/test_3d_gauss
340324
../auto_examples/testiaf
341325
../auto_examples/repeated_stimulation
342326
../auto_examples/multimeter_file
@@ -354,24 +338,6 @@ PyNEST examples
354338
../auto_examples/csa_spatial_example
355339
../auto_examples/hpc_benchmark
356340
../auto_examples/astrocytes/index
357-
../auto_examples/astrocytes/astrocyte_single
358-
../auto_examples/astrocytes/astrocyte_interaction
359-
../auto_examples/astrocytes/astrocyte_small_network
360-
../auto_examples/astrocytes/astrocyte_brunel
361341
../auto_examples/EI_clustered_network/index
362342
../auto_examples/eprop_plasticity/index
363343
../auto_examples/wang_decision_making
364-
365-
.. toctree::
366-
:hidden:
367-
368-
../auto_examples/sudoku/sudoku_net
369-
../auto_examples/sudoku/sudoku_solver
370-
../auto_examples/sudoku/plot_progress
371-
372-
.. toctree::
373-
:hidden:
374-
375-
../auto_examples/pong/run_simulations
376-
../auto_examples/pong/pong
377-
../auto_examples/pong/generate_gif

doc/htmldoc/get-started_index.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,13 +221,8 @@ More topics
221221
Devices <devices/index>
222222
Spatially-structured networks <networks/spatially_structured_networks>
223223
High performance computing <hpc/index>
224-
NEST models <models/index>
225224
NEST and SONATA <nest_sonata/nest_sonata_guide>
226-
Simulation behavior <nest_behavior/running_simulations>
227-
Randomness in NEST <nest_behavior/random_numbers>
228-
Built-in timers <nest_behavior/built-in_timers>
229225
Connect NEST with other tools <interface_nest/index>
230-
From NEST 2.x to 3.x <whats_new/v3.0/refguide_nest2_nest3>
231226

232227
.. toctree::
233228
:hidden:

doc/htmldoc/hpc/optimizing_nest.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,6 @@
33
Optimize performance of HPC Systems
44
===================================
55

6-
.. toctree::
7-
:hidden:
8-
9-
overview_hardware
10-
slurm_script
11-
threading
12-
mpi_processes
13-
146

157
If you are new to running NEST on HPC systems or trying to improve the performance or debug issues,
168
we have provided a few guides to help you out. There are a few things to consider about the

doc/htmldoc/installation/developer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ file that contains all possible packages needed for NEST development.
3333

3434
.. grid-item-card:: Install NEST with mamba
3535

36-
See our instructions for installing NEST from source in a :ref:`mamba environment <mambenva>`
36+
See our instructions for installing NEST from source in a :ref:`mamba environment <condaenv>`
3737

3838
.. grid-item-card:: Install NEST without environment
3939

doc/htmldoc/nest_behavior/built-in_timers.rst

Lines changed: 67 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@ querying the corresponding kernel attributes. For example:
1616

1717
The following basic time measurements are available:
1818

19-
+-----------------------------+----------------------------------+
20-
|Name |Explanation |
21-
+=============================+==================================+
22-
|``time_construction_create`` |Cumulative time NEST spent |
23-
| |creating neurons and devices |
24-
+-----------------------------+----------------------------------+
25-
|``time_construction_connect``|Cumulative time NEST spent |
26-
| |creating connections |
27-
+-----------------------------+----------------------------------+
28-
|``time_simulate`` |Time NEST spent in the last |
29-
| |``Simulate()`` |
30-
+-----------------------------+----------------------------------+
31-
32-
.. note ::
19+
+-------------------------------+----------------------------------+
20+
| Name | Explanation |
21+
+===============================+==================================+
22+
| ``time_construction_create`` | Cumulative time NEST spent |
23+
| | creating neurons and devices |
24+
+-------------------------------+----------------------------------+
25+
| ``time_construction_connect`` | Cumulative time NEST spent |
26+
| | creating connections |
27+
+-------------------------------+----------------------------------+
28+
| ``time_simulate`` | Time NEST spent in the last |
29+
| | ``Simulate()`` |
30+
+-------------------------------+----------------------------------+
31+
32+
.. note::
3333

3434
While preparing the actual simulation after network construction, NEST needs to build the pre-synaptic part of the
3535
connection infrastructure, which requires MPI communication (`Jordan et al. 2018
@@ -40,18 +40,18 @@ The following basic time measurements are available:
4040

4141
In the context of NEST performance monitoring, other useful kernel attributes are:
4242

43-
+-----------------------+----------------------------------+
44-
|Name |Explanation |
45-
+=======================+==================================+
46-
|``biological_time`` |Cumulative simulated time |
47-
+-----------------------+----------------------------------+
48-
|``local_spike_counter``|Number of spikes emitted by the |
49-
| |neurons represented on this MPI |
50-
| |rank during the last |
51-
| |``Simulate()`` |
52-
+-----------------------+----------------------------------+
43+
+-------------------------+-----------------------------------+
44+
| Name | Explanation |
45+
+=========================+===================================+
46+
| ``biological_time`` | Cumulative simulated time |
47+
+-------------------------+-----------------------------------+
48+
| ``local_spike_counter`` | Number of spikes emitted by the |
49+
| | neurons represented on this MPI |
50+
| | rank during the last |
51+
| | ``Simulate()`` |
52+
+-------------------------+-----------------------------------+
5353

54-
.. note ::
54+
.. note::
5555

5656
``nest.ResetKernel()`` resets all time measurements as well as ``biological_time`` and ``local_spike_counter``.
5757

@@ -65,40 +65,43 @@ simulation cycle, but they can impact the runtime. Therefore, detailed timers ar
6565

6666
If detailed timers are active, the following time measurements are available as kernel attributes:
6767

68-
+--------------------------------+----------------------------------+----------------------------------+
69-
|Name |Explanation |Part of |
70-
+================================+==================================+==================================+
71-
|``time_gather_target_data`` |Cumulative time for communicating |``time_communicate_prepare`` |
72-
| |connection information from | |
73-
| |postsynaptic to presynaptic side | |
74-
+--------------------------------+----------------------------------+----------------------------------+
75-
|``time_communicate_target_data``|Cumulative time for core MPI |``time_gather_target_data`` |
76-
| |communication when gathering | |
77-
| |target data | |
78-
+--------------------------------+----------------------------------+----------------------------------+
79-
|``time_update`` |Time for neuron update |``time_simulate`` |
80-
+--------------------------------+----------------------------------+----------------------------------+
81-
|``time_gather_spike_data`` |Time for complete spike exchange |``time_simulate`` |
82-
| |after update phase | |
83-
+--------------------------------+----------------------------------+----------------------------------+
84-
|``time_collocate_spike_data`` |Time to collocate MPI send buffer |``time_gather_spike_data`` |
85-
| |from spike register | |
86-
+--------------------------------+----------------------------------+----------------------------------+
87-
|``time_communicate_spike_data`` |Time for communicating spikes |``time_gather_spike_data`` |
88-
| |between compute nodes | |
89-
+--------------------------------+----------------------------------+----------------------------------+
90-
|``time_deliver_spike_data`` |Time to deliver events from the |``time_gather_spike_data`` |
91-
| |MPI receive buffers to their | |
92-
| |local synaptic targets (including | |
93-
| |synaptic update, e.g. STDP | |
94-
| |synapses) and to the spike ring | |
95-
| |buffers of the corresponding | |
96-
| |postsynaptic neurons | |
97-
+--------------------------------+----------------------------------+----------------------------------+
98-
|``time_omp_synchronization_construction`` |Synchronization time of threads during network construction. |``time_construction_create``, ``time_construction_connect``, ``time_communicate_prepare`` |
99-
+--------------------------------+----------------------------------+----------------------------------+
100-
|``time_omp_synchronization_simulation`` |Synchronization time of threads during simulation. |``time_simulate`` |
101-
+--------------------------------+----------------------------------+----------------------------------+
68+
+-------------------------------------------+-----------------------------------+----------------------------------+
69+
| Name | Explanation | Part of |
70+
+===========================================+===================================+==================================+
71+
| ``time_gather_target_data`` | Cumulative time for communicating | ``time_communicate_prepare`` |
72+
| | connection information from | |
73+
| | postsynaptic to presynaptic side | |
74+
+-------------------------------------------+-----------------------------------+----------------------------------+
75+
| ``time_communicate_target_data`` | Cumulative time for core MPI | ``time_gather_target_data`` |
76+
| | communication when gathering | |
77+
| | target data | |
78+
+-------------------------------------------+-----------------------------------+----------------------------------+
79+
| ``time_update`` | Time for neuron update | ``time_simulate`` |
80+
+-------------------------------------------+-----------------------------------+----------------------------------+
81+
| ``time_gather_spike_data`` | Time for complete spike exchange | ``time_simulate`` |
82+
| | after update phase | |
83+
+-------------------------------------------+-----------------------------------+----------------------------------+
84+
| ``time_collocate_spike_data`` | Time to collocate MPI send buffer | ``time_gather_spike_data`` |
85+
| | from spike register | |
86+
+-------------------------------------------+-----------------------------------+----------------------------------+
87+
| ``time_communicate_spike_data`` | Time for communicating spikes | ``time_gather_spike_data`` |
88+
| | between compute nodes | |
89+
+-------------------------------------------+-----------------------------------+----------------------------------+
90+
| ``time_deliver_spike_data`` | Time to deliver events from the | ``time_gather_spike_data`` |
91+
| | MPI receive buffers to their | |
92+
| | local synaptic targets (including | |
93+
| | synaptic update, e.g. STDP | |
94+
| | synapses) and to the spike ring | |
95+
| | buffers of the corresponding | |
96+
| | postsynaptic neurons | |
97+
+-------------------------------------------+-----------------------------------+----------------------------------+
98+
| ``time_omp_synchronization_construction`` | Synchronization time of threads | ``time_construction_create``, |
99+
| | during network construction. | ``time_construction_connect``, |
100+
| | | ``time_communicate_prepare`` |
101+
+-------------------------------------------+-----------------------------------+----------------------------------+
102+
| ``time_omp_synchronization_simulation`` | Synchronization time of threads | ``time_simulate`` |
103+
| | during simulation. | |
104+
+-------------------------------------------+-----------------------------------+----------------------------------+
102105

103106
MPI synchronization timer
104107
-------------------------
@@ -107,11 +110,11 @@ via the ``-Dwith-mpi-sync-timer=ON`` CMake flag. This timer measures the time be
107110
(i.e., neuron state propagation) and start of collective communication of spikes between all MPI processes. This timer
108111
adds an additional MPI barrier right before the start of communication, which might affect performance.
109112

110-
+-----------------------------+---------------------------------------+
111-
|Name |Explanation |
112-
+=============================+=======================================+
113-
|``time_mpi_synchronization`` |Time spent waiting for other processes.|
114-
+-----------------------------+---------------------------------------+
113+
+------------------------------+-----------------------------------------+
114+
| Name | Explanation |
115+
+==============================+=========================================+
116+
| ``time_mpi_synchronization`` | Time spent waiting for other processes. |
117+
+------------------------------+-----------------------------------------+
115118

116119
Multi-threaded timers
117120
---------------------

0 commit comments

Comments
 (0)