-
Notifications
You must be signed in to change notification settings - Fork 38
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
Create plots for the input and the output of the SPA Basal Ganglia #567
base: master
Are you sure you want to change the base?
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
@@ -32,7 +32,13 @@ Nengo.NetGraphItem = function(ng, info, minimap, mini_item) { | |||
this.g_networks = ng.g_networks_mini; | |||
this.g_items = ng.g_items_mini; | |||
} | |||
|
|||
|
|||
// SPA network specific parameter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what this means
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