Skip to content

Commit

Permalink
Merge 971feeb into 6abede8
Browse files Browse the repository at this point in the history
  • Loading branch information
tcstewar committed May 3, 2017
2 parents 6abede8 + 971feeb commit 07f3905
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nengo_spinnaker/node_io/ethernet.py
Expand Up @@ -100,6 +100,7 @@ def prepare(self, model, controller, netlist):
# Store this transmission parameters to (x, y, p) map
self._node_outgoing[node].append((
(transmission_params.pre_slice,
transmission_params.slice_in,
transmission_params.function,
transmission_params.full_transform(slice_out=False)),
(x, y, p)))
Expand All @@ -117,10 +118,12 @@ def set_node_output(self, node, value):
"""Transmit the value output by a Node."""
# Build an SDP packet to transmit for each outgoing connection for the
# node
for (pre_slice, function, transform), (x, y, p) in \
for (pre_slice, slice_in, function, transform), (x, y, p) in \
self._node_outgoing[node]:
# Apply the pre-slice, the connection function and the transform.

c_value = value[pre_slice]
c_value = value[slice_in]
if function is not None:
c_value = function(c_value)
c_value = np.dot(transform, c_value)
Expand Down

0 comments on commit 07f3905

Please sign in to comment.