• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..15-Sep-2021-

README.mdH A D15-Sep-20211 KiB2718

__init__.pyH A D15-Sep-2021755 230

hl_api_connection_helpers.pyH A D15-Sep-202113.2 KiB308231

hl_api_connections.pyH A D15-Sep-202112.7 KiB365253

hl_api_exceptions.pyH A D15-Sep-20218.9 KiB222152

hl_api_helper.pyH A D15-Sep-202117 KiB641467

hl_api_info.pyH A D15-Sep-202112.3 KiB436315

hl_api_models.pyH A D15-Sep-20215.2 KiB214147

hl_api_nodes.pyH A D15-Sep-20216.9 KiB203139

hl_api_parallel_computing.pyH A D15-Sep-20212.9 KiB13079

hl_api_simulation.pyH A D15-Sep-20218 KiB348232

hl_api_spatial.pyH A D15-Sep-202144.1 KiB1,299972

hl_api_types.pyH A D15-Sep-202137.7 KiB1,142845

README.md

1# `lib` folder
2
3Definition of high-level API of PyNEST.
4
5This file defines the user-level functions of NEST's Python interface
6by mapping NEST/SLI commands to Python. Please try to follow these
7rules:
8
91. SLI commands have the same name in Python. This means that most
10   function names are written in camel case, although the Python
11   guidelines suggest to use lower case for function names. However,
12   this way, it is easier for users to migrate from SLI to Python.
13
142. Nodes are identified by their global IDs (node ID) by default.
15
163. node IDs are always represented by a NodeCollection, e.g.
17   NodeCollection(metadata=None, model=iaf_psc_alpha, size=10, first=1, last=10)
18
194. Commands that return a node ID must return it as NodeCollection.
20
215. When possible, loops over nodes should be propagated down to the
22   SLI level. This minimizes the number of Python<->SLI conversions
23   and increases performance. Loops in SLI are also faster than in
24   Python.
25
266. If you have a *very* good reason, you may deviate from these guidelines.
27