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

Simulation doesn't read values from input slider on start #1016

Open
dokato opened this issue Jun 10, 2019 · 1 comment
Open

Simulation doesn't read values from input slider on start #1016

dokato opened this issue Jun 10, 2019 · 1 comment

Comments

@dokato
Copy link

dokato commented Jun 10, 2019

Describe the bug

When I manipulate the value of the slider during the simulation everything is fine, but when I set the value and then press the play button afterwards, it doesn't react to the input.

To reproduce

  1. Take this model:
model = nengo.Network()
with model:
    a = nengo.Ensemble(n_neurons=10, dimensions = 1,
                       neuron_type=nengo.LIF())
    stim = nengo.Node(0)
    nengo.Connection(stim, a)
  1. Add the slider to the stim. Set stim to 1.

  2. Add graph showing the value of a.

  3. Run simulation.

Expected behavior

It should show value 1 on the a graph, it shows 0 instead.

Screenshots
Screenshot 2019-06-10 at 11 53 05

Versions

  • OS: MacOS El Captain
  • Browser: chrome
  • Nengo GUI: 0.4.3
@astoeckel
Copy link
Contributor

Interesting! The current behaviour is that the value is reset at the begin of the simulation to whatever the initial value of the Node is. In this case you explicitly specified "0" as initial value.

I honestly don't know how this behaviour could be fixed without breaking other functionality.

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

No branches or pull requests

2 participants