Skip to content

Commit

Permalink
Fix LinearFilter parameter packing
Browse files Browse the repository at this point in the history
This could resize the buffer and resulted in nonsense values anyway.
  • Loading branch information
mundya committed Apr 11, 2016
1 parent b9b4fa7 commit 2a05258
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nengo_spinnaker/regions/filters.py
Expand Up @@ -240,8 +240,8 @@ def pack_data(self, dt, buffer, offset=0):
ab = np.vstack((-a[1:], b[1:])).T.flatten()

# Convert the values to fixpoint and write into a data buffer
struct.pack_into("<I", buffer, offset, self.order)
buffer[offset + 4:4+self.order*8] = tp.np_to_fix(ab).tostring()
struct.pack_into("<I{}s".format(self.order * 2 * 4), buffer, offset,
self.order, tp.np_to_fix(ab).tostring())


class FilterRoutingRegion(Region):
Expand Down

0 comments on commit 2a05258

Please sign in to comment.