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

Dynamically added SPs in SP plot might miss labels #737

Open
jgosmann opened this issue May 9, 2016 · 1 comment
Open

Dynamically added SPs in SP plot might miss labels #737

jgosmann opened this issue May 9, 2016 · 1 comment
Labels

Comments

@jgosmann
Copy link
Collaborator

jgosmann commented May 9, 2016

I have a model that is generating new Semantic Pointers while running (with Vocabulary.parse) and those get added to the legend of the Semantic Pointer plot without a name until at some point they suddenly appear with name.
spectacle m18522

@jgosmann jgosmann added the bug label May 9, 2016
@tcstewar
Copy link
Collaborator

tcstewar commented May 9, 2016

Yikes. Hmm... here's a minimal example that gives similar effects:

import nengo
import nengo.spa as spa

model = spa.SPA()
with model:
    model.state = spa.State(64)

    def create(t):
        index = int(t / 0.1)
        return 'A%d' % index

    model.input = spa.Input(state=create)

If you run that, you get this:

image

To add to the bug, if you reset time, A1 appears in the list. And then if you run the simulation again and then rewind a bit, you get this:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants