Skip to content

Commit

Permalink
Merge pull request #3232 from jessica-mitchell/fix-doc-links
Browse files Browse the repository at this point in the history
Fix minor Sphinx warnings related to broken links
  • Loading branch information
jessica-mitchell authored Jun 20, 2024
2 parents 1af4ab7 + 3c34be8 commit af25741
Show file tree
Hide file tree
Showing 15 changed files with 32 additions and 30 deletions.
6 changes: 3 additions & 3 deletions doc/htmldoc/connect_nest/nest_server.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ consideration, each of the restrictions can be disabled by setting a correspondi
* ``NEST_SERVER_DISABLE_AUTH``: By default, the NEST Server requires a NESTServerAuth tokens. Setting this variable to
``1`` disables this restriction. A token is automatically created and printed to the console by NEST Server upon
start-up. If needed, a custom token can be set using the environment variable ``NEST_SERVER_ACCESS_TOKEN``
* ``NEST_SERVER_CORS_ORIGINS``: By default, the NEST Server only allows requests from localhost (see `CORS
<https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS>`_). Other hosts can be explicitly allowed by supplying them
in the form `http://host_or_ip:*`` to this variable (By default: http://localhost:*).
* ``NEST_SERVER_CORS_ORIGINS``: By default, the NEST Server only allows requests from localhost (see
`CORS <https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS>`_). Other hosts can be explicitly allowed by supplying them
in the form http://host_or_ip:\* to this variable (By default: http://localhost:\*).
* ``NEST_SERVER_ENABLE_EXEC_CALL``: By default, NEST Server only allows calls to its PyNEST-like API. If the use-case
requires the execution of scripts via the ``/exec`` route, this variable can be set to ``1``. PLEASE BE AWARE THAT
THIS OPENS YOUR COMPUTER TO REMOTE CODE EXECUTION.
Expand Down
2 changes: 1 addition & 1 deletion doc/htmldoc/devices/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ All about devices in NEST

.. grid-item-card:: Stimulate the network
:class-title: sd-d-flex-row sd-align-minor-center
:link: stimuate_network
:link: stimulate_network
:link-type: ref

.. grid-item-card:: Get data from simulation
Expand Down
2 changes: 0 additions & 2 deletions doc/htmldoc/get-started_index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,6 @@ More topics
.. toctree::
:hidden:

understand_index

.. |nav| image:: static/img/GPS-Settings-256_nest.svg
.. |script| image:: static/img/script_white.svg
:scale: 20%
Expand Down
4 changes: 2 additions & 2 deletions doc/htmldoc/related_projects.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ real-time operation.
TheVirtualBrain (TVB)
---------------------

:ref:`TVB <tvb:top_basic>` is a framework for the simulation of the dynamics of large-scale brain networks with
:ref:`TVB <tvb:index>` is a framework for the simulation of the dynamics of large-scale brain networks with
biologically realistic connectivity.

* :ref:`Get started with TVB <tvb:tutorial_0_gettingstarted>`
* :ref:`Get started with TVB <tvb:tutorial_0_GettingStarted>`

ConnPlotter
-----------
Expand Down
2 changes: 1 addition & 1 deletion doc/htmldoc/synapses/synapse_specification.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Array parameters

Array parameters can be used with the rules ``one_to_one``, ``all_to_all``,
``fixed_total_number``, ``fixed_indegree``, and ``fixed_outdegree``.
For details on connection rules, see :ref:`connectivity_concept`.
For details on connection rules, see :ref:`connectivity_concepts`.
The arrays can be specified as NumPy arrays or Python
lists. As with the scalar parameters, all parameters have to be
specified as arrays of the correct type.
Expand Down
4 changes: 4 additions & 0 deletions models/iaf_psc_delta.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ hyperpolarization to biophysically plausible values, set parameter
.. note::
NEST uses exact integration [1]_, [2]_ to integrate subthreshold membrane
dynamics.
Spikes arriving while the neuron is refractory, are discarded by
default. If the property ``refractory_input`` is set to True, such
spikes are added to the membrane potential at the end of the
Expand Down
2 changes: 1 addition & 1 deletion nestkernel/recording_backend_ascii.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ each MPI process. This can cause a high load on the file system in
large simulations. This backend can become prohibitively inefficient,
particularly on machines with distributed filesystems. In case you
experience such scaling problems, the :doc:`recording backend for
SIONlib <recording_backend_sionlib>` may be a possible alternative.
SIONlib </models/recording_backend_sionlib>` may be a possible alternative.
Filenames of data files are determined according to the following
pattern:
Expand Down
2 changes: 1 addition & 1 deletion nestkernel/recording_backend_sionlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ a binary container file (or to a rather small set of such files). This
is especially useful for large-scale simulations running in a
distributed way on many MPI processes/OpenMP threads. In such usage
scenarios, writing to plain text files (see :doc:`recording backend
for ASCII files <recording_backend_ascii>`) would cause a large
for ASCII files </models/recording_backend_ascii>`) would cause a large
overhead because of the huge number of generated files and thus be
very inefficient.
Expand Down
16 changes: 8 additions & 8 deletions pynest/examples/EI_clustered_network/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,24 @@ If you use this code, we ask you to cite the paper by Rostami et al. [1]_ and th
File structure
--------------

* :doc:`run_simulation.py <run_simulation>`: an example script to try out the EI-clustered circuit model
* :doc:`network.py <network>`: the main ``Network`` class with functions to build and simulate the network
* :doc:`helper.py <helper>`: helper functions for calculation of synaptic weights and currents and plot function for raster plots
* :doc:`network_params.py <network_params>`: network and neuron parameters
* :doc:`stimulus_params.py <stimulus_params>`: parameters for optional external stimulation
* :doc:`sim_params.py <sim_params>`: simulation parameters
* :doc:`run_simulation_EI.py <run_simulation_EI>`: an example script to try out the EI-clustered circuit model
* :doc:`network_EI.py <network_EI>`: the main ``Network`` class with functions to build and simulate the network
* :doc:`helper_EI.py <helper_EI>`: helper functions for calculation of synaptic weights and currents and plot function for raster plots
* :doc:`network_params_EI.py <network_params_EI>`: network and neuron parameters
* :doc:`stimulus_params_EI.py <stimulus_params_EI>`: parameters for optional external stimulation
* :doc:`sim_params_EI.py <sim_params_EI>`: simulation parameters

Running the simulation
----------------------

.. code-block:: bash
python run_simulation.py
python run_simulation_EI.py
A raster plot of the network activity is saved as ``clustered_ei_raster.png``.

The code can be parallelized by using multiple threads during the NEST simulation.
This can be done by setting the parameter ``n_vp`` in the ``run_simulation.py`` script.
This can be done by setting the parameter ``n_vp`` in the ``run_simulation_EI.py`` script.

Contributions to this PyNEST model implementation
-------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# helper.py
# helper_EI.py
#
# This file is part of NEST.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# network.py
# network_EI.py
#
# This file is part of NEST.
#
Expand Down Expand Up @@ -58,8 +58,8 @@ class ClusteredNetwork:
def __init__(self, sim_dict, net_dict, stim_dict):
"""Initialize the ClusteredNetwork object.
Parameters are given and explained in the files network_params.py,
sim_params.py and stimulus_params.py.
Parameters are given and explained in the files network_params_EI.py,
sim_params_EI.py and stimulus_params_EI.py.
Parameters
----------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# network_params.py
# network_params_EI.py
#
# This file is part of NEST.
#
Expand All @@ -20,7 +20,7 @@
# along with NEST. If not, see <http://www.gnu.org/licenses/>.

"""PyNEST EI-clustered network: Network Parameters
------------------------------------------------
--------------------------------------------------
A dictionary with parameters defining the network and neuron parameters.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# run_simulation.py
# run_simulation_EI.py
#
# This file is part of NEST.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# sim_params.py
# sim_params_EI.py
#
# This file is part of NEST.
#
Expand All @@ -20,7 +20,7 @@
# along with NEST. If not, see <http://www.gnu.org/licenses/>.

"""PyNEST EI-clustered network: Simulation Parameters
------------------------------------------------
-----------------------------------------------------
A dictionary with parameters defining the simulation.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# stimulus_params.py
# stimulus_params_EI.py
#
# This file is part of NEST.
#
Expand All @@ -20,7 +20,7 @@
# along with NEST. If not, see <http://www.gnu.org/licenses/>.

""" PyNEST EI-clustered network: Stimulus Parameters
-----------------------------------------------
-----------------------------------------------------
A dictionary with parameters for an optinal stimulation of clusters.
Expand Down

0 comments on commit af25741

Please sign in to comment.