Skip to content

Commit e2c3276

Browse files
authored
Merge branch 'master' into remove_nest_vars_sh
2 parents 18b4868 + 8b68edf commit e2c3276

6 files changed

Lines changed: 21 additions & 200 deletions

File tree

libnestutil/iterator_pair.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ struct rightshift_iterator_pair
170170
}
171171

172172
template < typename T >
173-
inline int
173+
inline size_t
174174
operator()( boost::tuples::tuple< nest::Source&, T& > s, unsigned offset )
175175
{
176176
return boost::get< 0 >( s ).get_node_id() >> offset;

models/ht_synapse.h

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,16 @@ Synaptic dynamics are given by
4545
4646
.. math::
4747
48-
P'(t) = ( 1 - P ) / \tau_P \\
49-
P(T+) = (1 - \delta_P) P(T-) \text{ for T : time of a spike } \\
50-
P(t=0) = 1
48+
\frac{dP(t)}{dt} &= \frac{1}{\tau_\mathrm{P}} \left( 1 - P \right) \\
49+
P(t=0) &= 1 \\
5150
52-
:math:`w(t) = w_{max} \cdot P(t)` is the resulting synaptic weight
51+
Upon the arrival of a presynaptic spike at time :math:`t_\mathrm{sp}`, the value of :math:`P` is updated as follows:
52+
53+
.. math::
54+
55+
P \leftarrow (1 - \delta_\mathrm{P}) P
56+
57+
:math:`w(t) = w_\mathrm{max} \cdot P(t)` is the resulting synaptic weight.
5358
5459
For implementation details see:
5560
`HillTononi_model <../model_details/HillTononiModels.ipynb>`_
@@ -70,7 +75,7 @@ The following parameters can be set in the status dictionary:
7075
tau_P ms Synaptic vesicle pool recovery time constant
7176
delta_P real Fractional change in vesicle pool on incoming spikes
7277
(unitless)
73-
P real Current size of the vesicle pool [unitless, 0 <= P <= 1]
78+
P real Current size of the vesicle pool (unitless, 0 <= P <= 1)
7479
======== ====== =========================================================
7580
7681
References

nestkernel/source.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,20 @@ namespace nest
4040
class Source
4141
{
4242
private:
43-
uint64_t node_id_ : NUM_BITS_NODE_ID; //!< node ID of source
44-
bool processed_ : 1; //!< whether this target has already been moved
45-
//!< to the MPI buffer
46-
bool primary_ : 1; //!< source of primary connection
47-
bool disabled_ : 1; //!< connection has been disabled
43+
size_t node_id_ : NUM_BITS_NODE_ID; //!< node ID of source
44+
bool processed_ : 1; //!< whether this target has already been moved
45+
//!< to the MPI buffer
46+
bool primary_ : 1; //!< source of primary connection
47+
bool disabled_ : 1; //!< connection has been disabled
4848

4949
public:
5050
Source();
51-
explicit Source( const uint64_t node_id, const bool primary );
51+
explicit Source( const size_t node_id, const bool primary );
5252

5353
/**
5454
* Returns this Source's node ID.
5555
*/
56-
uint64_t get_node_id() const;
56+
size_t get_node_id() const;
5757

5858
void set_processed( const bool processed );
5959
bool is_processed() const;
@@ -91,7 +91,7 @@ inline Source::Source()
9191
{
9292
}
9393

94-
inline Source::Source( const uint64_t node_id, const bool is_primary )
94+
inline Source::Source( const size_t node_id, const bool is_primary )
9595
: node_id_( node_id )
9696
, processed_( false )
9797
, primary_( is_primary )
@@ -100,7 +100,7 @@ inline Source::Source( const uint64_t node_id, const bool is_primary )
100100
assert( node_id <= MAX_NODE_ID );
101101
}
102102

103-
inline uint64_t
103+
inline size_t
104104
Source::get_node_id() const
105105
{
106106
return node_id_;

testsuite/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ install( PROGRAMS
3737
)
3838

3939
install( FILES
40-
junit_xml.sh run_test.sh summarize_tests.py
40+
junit_xml.sh summarize_tests.py
4141
DESTINATION ${CMAKE_INSTALL_DATADIR}/testsuite
4242
)

testsuite/do_tests.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@ NEST_PY_PATH="$(${PYTHON} -c "import sysconfig; print(sysconfig.get_path('platli
111111
PYTHONPATH="${NEST_PY_PATH}${PYTHONPATH:+:$PYTHONPATH}"
112112
# shellcheck source=testsuite/junit_xml.sh
113113
. "$(dirname "$0")/junit_xml.sh"
114-
# shellcheck source=testsuite/run_test.sh
115-
. "$(dirname "$0")/run_test.sh"
116114

117115
# Directory containing installed tests
118116
TEST_BASEDIR="${PREFIX}/share/nest/testsuite"
@@ -124,8 +122,6 @@ REPORTDIR="${PWD}/$(mktemp -d test_report_XXX)"
124122

125123
TEST_LOGFILE="${REPORTDIR}/installcheck.log"
126124
TEST_OUTFILE="${REPORTDIR}/output.log"
127-
TEST_RETFILE="${REPORTDIR}/output.ret"
128-
TEST_RUNFILE="${REPORTDIR}/runtest.sh"
129125

130126
get_build_info ()
131127
{

testsuite/run_test.sh

Lines changed: 0 additions & 180 deletions
This file was deleted.

0 commit comments

Comments
 (0)