From 024fffbc167248cc989ecb2311d2d1a4b080936a Mon Sep 17 00:00:00 2001 From: Christian Mauch Date: Fri, 5 Mar 2021 17:20:16 +0100 Subject: [PATCH] Remove unnecessary comments Change-Id: I6bf40899e0def71b9088dbf3191a77481362bd74 --- brainscales2/pynn_brainscales/brainscales2/projections.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/brainscales2/pynn_brainscales/brainscales2/projections.py b/brainscales2/pynn_brainscales/brainscales2/projections.py index f011789..3f58fa6 100644 --- a/brainscales2/pynn_brainscales/brainscales2/projections.py +++ b/brainscales2/pynn_brainscales/brainscales2/projections.py @@ -155,7 +155,7 @@ def add_to_network_graph(populations: List[Population], post_mask[conn.postsynaptic_index], int(conn.weight)) for conn in projection.connections] - # get receptor type + if projection.receptor_type == "excitatory": receptor_type = grenade.Projection.ReceptorType.excitatory elif projection.receptor_type == "inhibitory": @@ -164,10 +164,10 @@ def add_to_network_graph(populations: List[Population], raise NotImplementedError( "grenade.Projection.RecetorType does " + f"not support {projection.receptor_type}.") - # create grenade projection + gprojection = grenade.Projection( receptor_type, connections, population_pre, population_post) - # add to builder + return builder.add(gprojection)