You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Still don't know how to solve this in the best way. This is what I've been imagining:
Ideally, the user could do
importneurolibprint(neurolib.models)
and get a list of the model's module names (e.g., neurolib.models.aln), and the name and the description attribute of each model.
This gets the name of all submodules for example (in neurolib/__init__py). But then? Do I need to import them to get the attributes of each model class? Seems a bit overkill.
I think you actually need to import them in order to get the info stored in the class itself... so some packages define something like __all__ = [] as a list in some __init__ file which also then can work like "from neurolib.models import *" and it'll import only stuff that is inside __all__...
that can be also used to print out available models I guess?
however, print(neurolib.models) won't work I am afraid..
There should be a way to list all available models. Similar to how TVB handles it would be nice: http://docs.thevirtualbrain.com/_modules/tvb/simulator/models.html
The text was updated successfully, but these errors were encountered: