Skip to content

Commit ca7837d

Browse files
Merge pull request #19 from jougs/cleanup-cpp-docs
Final run-through and further cleanup of differen types of comments
2 parents 76e3bf4 + 9c86dab commit ca7837d

91 files changed

Lines changed: 952 additions & 1493 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

doc/htmldoc/404.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
:orphan:
2+
3+
404 - Page not found
4+
--------------------
5+
6+
7+
Sorry, it looks like the page you were looking for doesn't exist in this version or has moved.
8+
9+
Try the search bar or the navigation sidebar.
10+
11+

doc/htmldoc/conf.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"HoverXTooltip",
6060
"VersionSyncRole",
6161
"sphinx_copybutton",
62+
"notfound.extension",
6263
]
6364

6465
autodoc_mock_imports = ["nest.pynestkernel", "nest.ll_api"]
@@ -81,6 +82,9 @@
8182
copyright = "2004, nest-simulator"
8283
author = "nest-simulator"
8384

85+
copybutton_prompt_text = ">>> "
86+
# The output lines will not be copied if set to True
87+
copybutton_only_copy_prompt_lines = True
8488

8589
# The version info for the project you're documenting, acts as replacement for
8690
# |version| and |release|, also used in various other places throughout the
@@ -354,9 +358,6 @@ def copy_example_file(src):
354358

355359

356360
# -- Copy documentation for Microcircuit Model ----------------------------
357-
copy_example_file("examples/Potjans_2014/box_plot.png")
358-
copy_example_file("examples/Potjans_2014/raster_plot.png")
359-
copy_example_file("examples/Potjans_2014/microcircuit.png")
360361
copy_example_file("examples/hpc_benchmark_connectivity.svg")
361362

362363

doc/htmldoc/developer_space/guidelines/naming_conventions.rst

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,36 +6,55 @@ Variables and parameter names
66
Conventions for parameters
77
--------------------------
88

9-
1. Do not use capitalization to indicate whether a value in the status dictionary is variable.
10-
1. Where available, use the notation from P.Dayan & L.F.Abbott, Theoretical Neuroscience, MIT Press, 2001.
11-
1. Where not available, use a notation that is consistent with Dayan & Abbott.
12-
1. Subscripts are indicated by underscores
9+
#. Do not use capitalization to indicate whether a value in the status dictionary is variable.
10+
#. Where available, use the notation from P.Dayan & L.F.Abbott, Theoretical Neuroscience, MIT Press, 2001.
11+
#. Where not available, use a notation that is consistent with Dayan & Abbott.
12+
#. Subscripts are indicated by underscores
1313

1414
Parameters and symbols
1515
----------------------
1616

1717
+----------------------------------+-------------+
1818
| PARAMETER | SYMBOL/NAME |
19-
+----------------------------------+-------------+
19+
+==================================+=============+
2020
| Membrane potential | V_m |
21+
+----------------------------------+-------------+
2122
| Resting potential | E_L |
23+
+----------------------------------+-------------+
2224
| Input current | I_e |
25+
+----------------------------------+-------------+
2326
| Leak current | I_L |
27+
+----------------------------------+-------------+
2428
| Threshold | V_th |
29+
+----------------------------------+-------------+
2530
| Reset Potential | V_reset |
31+
+----------------------------------+-------------+
2632
| Capacity or specific capacitance | c_m |
33+
+----------------------------------+-------------+
2734
| Capacitance | C_m |
35+
+----------------------------------+-------------+
2836
| Membrane time const. | tau_m |
37+
+----------------------------------+-------------+
2938
| Synapse time constant | tau_syn |
39+
+----------------------------------+-------------+
3040
| Refractory period | t_ref |
41+
+----------------------------------+-------------+
3142
| Time of last spike | t_spike |
43+
+----------------------------------+-------------+
3244
| Excitatory reversal potential | E_ex |
45+
+----------------------------------+-------------+
3346
| Inhibitory reversal potential | E_in |
47+
+----------------------------------+-------------+
3448
| Conductance | g |
49+
+----------------------------------+-------------+
3550
| Leak conductance | g_L |
51+
+----------------------------------+-------------+
3652
| Sodium conductance | g_Na |
53+
+----------------------------------+-------------+
3754
| Sodium reversal potential | E_Na |
55+
+----------------------------------+-------------+
3856
| Potassium conductance | g_K |
57+
+----------------------------------+-------------+
3958
| Potassium reversal potential | E_K |
4059
+----------------------------------+-------------+
4160

@@ -44,13 +63,20 @@ Common suffixes (subscripts)
4463

4564
+----------------------------------+-------------+
4665
| SUBSCRIPT | MEANING |
47-
+----------------------------------+-------------+
66+
+==================================+=============+
4867
| m | membrane |
68+
+----------------------------------+-------------+
4969
| L | leak |
70+
+----------------------------------+-------------+
5071
| e | extern |
72+
+----------------------------------+-------------+
5173
| th | threshold |
74+
+----------------------------------+-------------+
5275
| syn | synapse |
76+
+----------------------------------+-------------+
5377
| ref | refractory |
78+
+----------------------------------+-------------+
5479
| ex | excitatory |
80+
+----------------------------------+-------------+
5581
| in | inhibitory |
5682
+----------------------------------+-------------+
211 KB
Loading
File renamed without changes.

doc/htmldoc/templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ <h1>Learning from example</h1>
190190
<div class="grid_10">
191191
Our <a href="examples/index.html">extensive list of example scripts</a> showcase the many models
192192
and methods you can use for your project. <br>
193-
We also have network models of varyinig scales like the <a
193+
We also have network models of varying scales like the <a
194194
href="examples/cortical_microcircuit_index.html">microcircuit model</a>
195195
and the <a href="https://inm-6.github.io/multi-area-model/">multi-area model</a>.
196196
</div>

doc/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ seaborn==0.12.2
2323
sphinx==6.2.1
2424
sphinx_autobuild==2021.3.14
2525
sphinx-copybutton>=0.5.2
26+
sphinx-notfound-page>=0.8.3
2627
sphinx-design==0.4.1
2728
sphinx-gallery==0.13.0
2829
sphinx-material==0.0.35

environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,4 @@ dependencies:
111111
- sphinx_design
112112
- sphinx-material
113113
- sphinx-copybutton
114+
- sphinx-notfound-page

nestkernel/archiving_node.h

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -54,46 +54,32 @@ class ArchivingNode : public StructuralPlasticityNode
5454
ArchivingNode( const ArchivingNode& );
5555

5656
/**
57-
* Return the Kminus (synaptic trace) value at t (in ms).
57+
* Return the Kminus (synaptic trace) value at time t (given in ms).
5858
*
59-
* When the trace is requested at the exact same time that
60-
* the neuron emits a spike, the trace
61-
* value as it was just before the spike is returned.
59+
* When the trace is requested at the exact same time that the neuron emits a spike,
60+
* the trace value as it was just before the spike is returned.
6261
*/
6362
double get_K_value( double t ) override;
6463

6564
/**
66-
* Write the Kminus (eligibility trace for STDP),
67-
* nearest_neighbour_Kminus (eligibility trace for nearest-neighbour STDP
65+
* Write the different STDP K values at time t (in ms) to the provided locations.
6866
*
69-
* Like Kminus, but increased to 1, rather than by 1, on a spike
70-
* occurrence), and Kminus_triplet values at t (in ms) to the provided locations.
71-
* @throws UnexpectedEvent
72-
*/
73-
void get_K_values( double t, double& Kminus, double& nearest_neighbor_Kminus, double& Kminus_triplet ) override;
74-
75-
/**
76-
* The legacy version of the function
67+
* @param Kminus the eligibility trace for STDP
68+
* @param nearest_neighbour_Kminus eligibility trace for nearest-neighbour STDP, like Kminus,
69+
but increased to 1, rather than by 1, when a spike occurs
70+
* @param Kminus_triplet eligibility trace for triplet STDP
7771
*
78-
* Kept for compatibility
79-
* after changing the function signature in PR #865.
8072
* @throws UnexpectedEvent
8173
*/
82-
void
83-
get_K_values( double t, double& Kminus, double& Kminus_triplet )
84-
{
85-
double nearest_neighbor_Kminus_to_discard;
86-
get_K_values( t, Kminus, nearest_neighbor_Kminus_to_discard, Kminus_triplet );
87-
}
74+
void get_K_values( double t, double& Kminus, double& nearest_neighbor_Kminus, double& Kminus_triplet ) override;
8875

8976
/**
9077
* Return the triplet Kminus value for the associated iterator.
9178
*/
9279
double get_K_triplet_value( const std::deque< histentry >::iterator& iter );
9380

9481
/**
95-
* Return the spike times (in steps) of spikes which occurred in the range
96-
* [t1,t2].
82+
* Return the spike times (in steps) of spikes which occurred in the range [t1,t2].
9783
*/
9884
void get_history( double t1,
9985
double t2,
@@ -130,7 +116,7 @@ class ArchivingNode : public StructuralPlasticityNode
130116
/**
131117
* Number of incoming connections from STDP connectors.
132118
*
133-
* It is needed to determine, if every incoming connection has
119+
* This variable is needed to determine if every incoming connection has
134120
* read the spikehistory for a given point in time
135121
*/
136122
size_t n_incoming_;

0 commit comments

Comments
 (0)