-
Notifications
You must be signed in to change notification settings - Fork 12
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
Importing morphologies into Brian from a NeuroML file #15
Comments
Hi @mstimberg I was working on https://github.com/OpenSourceBrain/ACnet2/blob/master/neuroConstruct/generatedNeuroML2/pyr_4_sym.cell.nml trying to import morphologies through script. In this nml file there are multiple |
Hi. The morphology of the cell is given in the But long story short: the
I think I'd prefer option 3 given that most files will only have a single cell (so 1 would be a bit annoying) and changing return types of a function (as for option 2) is not great. If you have another idea, I'm all ears. |
Hi @mstimberg There is a predefined logging model present in Brian2 which is also used in |
Hi @kapilkd13 , yes please use Brian's logging module. Logs will end up in Brian's main log file and/or on screen depending on your configuration. We have some docs about it from the user's and the developer's point of view. |
Hi @mstimberg I have made a PR with current progress. Currently I am working on test suite. I am thinking of using a generic .nml file to create a python morphology object using libneuroml and perform unit test on our functions using this object. What do you think? |
Sounds good! For the main loading function, we might also accept a file object instead of a filename as the argument, this is quite a standard thing to do (see e.g. numpy.loadtxt). With this, you would not have to give an actual filename, but could provide a string via StringIO. This would be cleaner for testing several different files as part of the test suite. Not super-important, though, tests using a file are fine as well. |
This summer I would be working on "Importing morphologies into Brian from a NeuroML file" as part of the Gsoc 2018. I would be using this thread for keeping track of the milestones and the upcoming work.
Also I would like to use this thread to discuss issues/ suggestions or to gain any other information.
Milestones to be achieved:
libNeuroML is choosen
under progress
After this I will start working on "accessing other information like ion channel from nml file"
After this we will compare result from Brian, Neuron and other simulators. nml file exported from NEURON will be imported and tested in Brian. detailed milestones will be added later.
@mstimberg
The text was updated successfully, but these errors were encountered: