|
16 | 16 | #include "connector_model.h" |
17 | 17 | #include "nest_names.h" |
18 | 18 |
|
19 | | -// Includes from sli: |
20 | | -#include "dictutils.h" |
| 19 | +// Includes from nestkernel: |
| 20 | +#include "dictionary.h" |
21 | 21 |
|
22 | 22 | namespace pynn |
23 | 23 | { |
@@ -55,30 +55,29 @@ stochastic_stp_synapse< targetidentifierT >::stochastic_stp_synapse( |
55 | 55 | template < typename targetidentifierT > |
56 | 56 | void |
57 | 57 | stochastic_stp_synapse< targetidentifierT >::get_status( |
58 | | - DictionaryDatum& d ) const |
| 58 | + Dictionary& d ) const |
59 | 59 | { |
60 | 60 | ConnectionBase::get_status( d ); |
61 | | - def< double >( d, nest::names::weight, weight_ ); |
62 | | - def< double >( d, nest::names::dU, U_ ); |
63 | | - def< double >( d, nest::names::u, u_ ); |
64 | | - def< double >( d, nest::names::tau_rec, tau_rec_ ); |
65 | | - def< double >( d, nest::names::tau_fac, tau_fac_ ); |
| 61 | + d[ nest::names::weight ] = weight_; |
| 62 | + d[ nest::names::dU ] = U_; |
| 63 | + d[ nest::names::u ] = u_; |
| 64 | + d[ nest::names::tau_rec ] = tau_rec_; |
| 65 | + d[ nest::names::tau_fac ] = tau_fac_; |
66 | 66 | } |
67 | 67 |
|
68 | 68 |
|
69 | 69 | template < typename targetidentifierT > |
70 | 70 | void |
71 | 71 | stochastic_stp_synapse< targetidentifierT >::set_status( |
72 | | - const DictionaryDatum& d, |
| 72 | + const Dictionary& d, |
73 | 73 | nest::ConnectorModel& cm ) |
74 | 74 | { |
75 | 75 | ConnectionBase::set_status( d, cm ); |
76 | | - updateValue< double >( d, nest::names::weight, weight_ ); |
77 | | - |
78 | | - updateValue< double >( d, nest::names::dU, U_ ); |
79 | | - updateValue< double >( d, nest::names::u, u_ ); |
80 | | - updateValue< double >( d, nest::names::tau_rec, tau_rec_ ); |
81 | | - updateValue< double >( d, nest::names::tau_fac, tau_fac_ ); |
| 76 | + d.update_value( nest::names::weight, weight_ ); |
| 77 | + d.update_value( nest::names::dU, U_ ); |
| 78 | + d.update_value( nest::names::u, u_ ); |
| 79 | + d.update_value( nest::names::tau_rec, tau_rec_ ); |
| 80 | + d.update_value( nest::names::tau_fac, tau_fac_ ); |
82 | 81 | } |
83 | 82 |
|
84 | 83 | } // of namespace pynn |
|
0 commit comments