Conversation
|
Looks like you forgot to include |
|
😊 fixed it now |
Conflicts: nengo_gui/components/netgraph.py nengo_gui/components/value.py nengo_gui/static/components/netgraph_item.js
|
This pull request is ready for review, however a few caveats before you dig in:
|
|
Hmmm... Doesn't seem to be responding to edited actions on reload. Or if you edit the actions at all actually. Or re-order them... |
|
Now responds to edits, but just gives the default values labels, which isn't good. |
|
This pull request is ready for review again! |
|
Here's an interesting bug with how the labels are generated:
The remaining lines will be labelled |
| self.label = "bg " + self.probe_target | ||
|
|
||
| def attach(self, page, config, uid): | ||
| super(Value, self).attach(page, config, uid) |
There was a problem hiding this comment.
If this isn't doing anything other than calling the constructor, I'm not sure it should be defined at all
There was a problem hiding this comment.
The difference between this calling of the constructor and not defining it at all, is that in this call, I don't assign a label. If this were not defined, a label, which I do not want, would be assigned.
| } | ||
|
|
||
|
|
||
| // SPA network specific parameter |
|
I figure out the bug causing the weird label stuff. The legend labels are being saved in the config and being reloaded regardless of their relevance, because they're saved as a list and not as a hash. So items of at the end of the list are deleted regardless of the position of the inputs are removed. To fix this, they should be saved as a hash where bg inputs are associated to specific legend labels. To accomplish this, I need to create a new class for bg-plot in JavaScript and I have to extract the legend management code from Value.js. Consequently, I won't be getting around to this for a while. |
No problem! We can put this off till 0.3... :) |
Partially resolves #411