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

Manual annotations/descriptions for objects #1250

Open
mstimberg opened this issue Nov 6, 2020 · 2 comments
Open

Manual annotations/descriptions for objects #1250

mstimberg opened this issue Nov 6, 2020 · 2 comments
Labels

Comments

@mstimberg
Copy link
Member

In the context of automatic model descriptions, it would be useful to be able to give additional descriptions/annotations to objects such as NeuronGroup. Currently, the only type of annotation you can use is name, but since this name is used inside generated code it is quite restricted (e.g. you could call a group 'l23_neurons' but not 'Layer 2/3 neurons'). In the ANNarchy simulator you can have a human-readable name + a description. We could add a description field as well, but I wonder whether we should not rather directly go for something generic like a metadata attribute which holds an arbitrary dictionary. I could imagine other things that could be useful in the future, in particular with models imported from somewhere else. For example, in some applications it could be useful to have some kind of reference/publication field (or just orcid) with a link to the publication describing the model. Or when importing a model from NeuroML, it might make sense to still keep the NeuroML code around for reference.

Of course we could also take some middle ground, e.g. name + description as direct arguments and everything else in a generic metadata dictionary.

@kernfel
Copy link
Contributor

kernfel commented Nov 9, 2020

I guess metadata wouldn't have to be a dictionary, right? You could just leave it up to the user whether that's a string, or a dict, or anything else. Then again, would that be any different from just using add_attribute after the definition?

@thesamovar
Copy link
Member

I think metadata as a dict is probably good, but we should also lay out some standard keys (title, description, publication, etc.). We could even consider supporting one of the standards for this. Isn't there a new one on reporting neural modelling?

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

No branches or pull requests

3 participants