Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a neuron probe with a synapse results in build error #182

Closed
drasmuss opened this issue Feb 1, 2019 · 1 comment
Closed

Adding a neuron probe with a synapse results in build error #182

drasmuss opened this issue Feb 1, 2019 · 1 comment

Comments

@drasmuss
Copy link
Member

@drasmuss drasmuss commented Feb 1, 2019

Minimal example:

import nengo
import nengo_loihi

with nengo.Network() as net:
    a = nengo.Ensemble(10, 1)
    p = nengo.Probe(a.neurons, synapse=0.1)

with nengo_loihi.Simulator(net) as sim:
    pass

Traceback:

Traceback (most recent call last):
  File "...\tmp.py", line 8, in <module>
    with nengo_loihi.Simulator(net) as sim:
  File "...\nengo_loihi\simulator.py", line 364, in __init__
    self.sims["emulator"] = EmulatorInterface(self.model, seed=seed)
  File "...\nengo_loihi\emulator\interface.py", line 62, in __init__
    self.probes = ProbeState(self.block_info, self.inputs, model.dt)
  File "...\nengo_loihi\emulator\interface.py", line 619, in __init__
    else probe.weights.shape[1])
AttributeError: 'float' object has no attribute 'shape'
tbekolay added a commit that referenced this issue Feb 4, 2019
Scalar probe weights occur when probing spikes, which was not
being handled correctly in the EmulatorInterface.

Fixes #182.
tbekolay added a commit that referenced this issue Feb 4, 2019
Scalar probe weights occur when probing spikes, which was not
being handled correctly in the EmulatorInterface.

Fixes #182.
@drasmuss
Copy link
Member Author

@drasmuss drasmuss commented Feb 20, 2019

Fixed in #183

@drasmuss drasmuss closed this Feb 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant