Skip to content

Commit

Permalink
Fix templates
Browse files Browse the repository at this point in the history
  • Loading branch information
pnbabu committed Jan 9, 2024
1 parent c9c5bb4 commit 7c06417
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ along with NEST. If not, see <http://www.gnu.org/licenses/>.

#include "{{neuronName}}.h"

{%- if not (nest_version.startswith("v2") or nest_version.startswith("v3.0") or (nest_version.startswith("v3.1") or nest_version.startswith("v3.2")
or nest_version.startswith("v3.3") or nest_version.startswith("v3.4") or nest_version.startswith("v3.5") or nest_version.startswith("v3.6") %}
{%- if not (nest_version.startswith("v2") or nest_version.startswith("v3.0") or nest_version.startswith("v3.1") or nest_version.startswith("v3.2")
or nest_version.startswith("v3.3") or nest_version.startswith("v3.4") or nest_version.startswith("v3.5") or nest_version.startswith("v3.6")) %}
void
register_{{ neuronName }}( const std::string& name )
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ size_t access_counter )
*/

// Register the neuron model
{%- if not (nest_version.startswith("v2") or nest_version.startswith("v3.0") or (nest_version.startswith("v3.1") or nest_version.startswith("v3.2")
or nest_version.startswith("v3.3") or nest_version.startswith("v3.4") or nest_version.startswith("v3.5") or nest_version.startswith("v3.6") %}
{%- if not (nest_version.startswith("v2") or nest_version.startswith("v3.0") or nest_version.startswith("v3.1") or nest_version.startswith("v3.2")
or nest_version.startswith("v3.3") or nest_version.startswith("v3.4") or nest_version.startswith("v3.5") or nest_version.startswith("v3.6")) %}
void register_{{ neuronName }}( const std::string& name );
{%- endif %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ along with NEST. If not, see <http://www.gnu.org/licenses/>.

namespace nest
{
{%- if not (nest_version.startswith("v2") or nest_version.startswith("v3.0") or (nest_version.startswith("v3.1") or nest_version.startswith("v3.2")
{%- if not (nest_version.startswith("v2") or nest_version.startswith("v3.0") or nest_version.startswith("v3.1") or nest_version.startswith("v3.2")
or nest_version.startswith("v3.3") or nest_version.startswith("v3.4") or nest_version.startswith("v3.5") or nest_version.startswith("v3.6")) %}
// Register the synapse model
void register_{{ synapseName }}( const std::string& name );
Expand Down Expand Up @@ -870,7 +870,7 @@ public:
{%- endif %}
};

{%- if not (nest_version.startswith("v2") or nest_version.startswith("v3.0") or (nest_version.startswith("v3.1") or nest_version.startswith("v3.2")
{%- if not (nest_version.startswith("v2") or nest_version.startswith("v3.0") or nest_version.startswith("v3.1") or nest_version.startswith("v3.2")
or nest_version.startswith("v3.3") or nest_version.startswith("v3.4") or nest_version.startswith("v3.5") or nest_version.startswith("v3.6")) %}
void
register_{{ synapseName }}( const std::string& name )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ void
{%- if neurons %}
// register neurons
{%- for neuron in neurons %}
{%- if not (nest_version.startswith("v2") or nest_version.startswith("v3.0") or (nest_version.startswith("v3.1") or nest_version.startswith("v3.2")
{%- if not (nest_version.startswith("v2") or nest_version.startswith("v3.0") or nest_version.startswith("v3.1") or nest_version.startswith("v3.2")
or nest_version.startswith("v3.3") or nest_version.startswith("v3.4") or nest_version.startswith("v3.5") or nest_version.startswith("v3.6")) %}
nest::kernel().model_manager.register_node_model<{{neuron.get_name()}}>("{{neuron.get_name()}}");
{%- else %}
Expand All @@ -137,7 +137,7 @@ void
{%- if synapses %}
// register synapses
{%- for synapse in synapses %}
{%- if not (nest_version.startswith("v2") or nest_version.startswith("v3.0") or (nest_version.startswith("v3.1") or nest_version.startswith("v3.2")
{%- if not (nest_version.startswith("v2") or nest_version.startswith("v3.0") or nest_version.startswith("v3.1") or nest_version.startswith("v3.2")
or nest_version.startswith("v3.3") or nest_version.startswith("v3.4") or nest_version.startswith("v3.5") or nest_version.startswith("v3.6")) %}
nest::register_connection_model< nest::{{synapse.get_name()}} >( "{{synapse.get_name()}}" );
{%- else %}
Expand Down

0 comments on commit 7c06417

Please sign in to comment.