nengo / nengo-gui

Nengo interactive visualizer
Other
95 stars 38 forks source link

Modulatory connections are drawn to (0,0) #1014

Closed tcstewar closed 5 years ago

tcstewar commented 5 years ago

All modulatory connections seem to connect to the top-left corner. For example:

import nengo
model = nengo.Network()
with model:
    pre = nengo.Ensemble(n_neurons=100, dimensions=1)
    post = nengo.Ensemble(n_neurons=100, dimensions=1)
    learn_conn = nengo.Connection(pre, post,
                                  learning_rule_type=nengo.PES())
    error = nengo.Ensemble(n_neurons=100, dimensions=1)
    nengo.Connection(error, learn_conn.learning_rule)

image

astoeckel commented 5 years ago

Thank you for reporting! This should be fixed in #1015, please let me know in case there are any more problems.

Please note that modulatory connections are not displayed correctly in case they target an "arc connection", but this is an issue I was aware of (there is a TODO in the code, I should probably also open an issue for this).