ctn-archive / nengo_gui_2014

HTML5 graphical interface for Nengo -- now obsolete! Please use https://github.com/nengo/nengo_gui instead
Other
6 stars 0 forks source link

Renaming ensembles changes their locations #73

Closed studywolf closed 10 years ago

studywolf commented 10 years ago

When I start up with the default script if I rename b to a and then back and forth or to other things a few times its location on the screen jumps around, sometimes off screen, throwing off the layout. It would be nice to have it stay in the same place. I can understand how this would be a difficult problem, though!

celiasmith commented 10 years ago

if you use the label='stuff' instead to change names, it won't care. but yes, you're making new objects and it's not obvious why that should be the 'same' object when you keep changing it.

studywolf commented 10 years ago

i see, i was confused because it seemed like changing the name in the script was the way to rename objects in the viewer, rather than using a label. Could we add labels to the default script?

On Wed, Jun 4, 2014 at 2:22 PM, Chris Eliasmith notifications@github.com wrote:

if you use the label='stuff' instead to change names, it won't care. but yes, you're making new objects and it's not obvious why that should be the 'same' object when you keep changing it.

— Reply to this email directly or view it on GitHub https://github.com/ctn-waterloo/nengo_gui/issues/73#issuecomment-45129873 .

tcstewar commented 10 years ago

Yup, adding some labels to the default script seems like a good idea... they used to be there, in fact.... :)

celiasmith commented 10 years ago

Actually, i'm wondering if we should not do 'magic' labels using the variables (like we do with networks) to avoid this confusion. Then nodes and ensembles are also only labeled using a 'label'... @tcstewar?

tcstewar commented 10 years ago

I'd be happy with that, although I'd want the default label to be '' rather than 'Node' and 'Ensemble'.....

celiasmith commented 10 years ago

Yes, exactly what i was thinking...

studywolf commented 10 years ago

I agree this would help clear things up.

On Wed, Jun 4, 2014 at 2:58 PM, Chris Eliasmith notifications@github.com wrote:

Yes, exactly what i was thinking...

— Reply to this email directly or view it on GitHub https://github.com/ctn-waterloo/nengo_gui/issues/73#issuecomment-45135863 .