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

[Query] Can we pass a nml file's file object to load it #71

Open
kapilkd13 opened this issue May 28, 2018 · 1 comment
Open

[Query] Can we pass a nml file's file object to load it #71

kapilkd13 opened this issue May 28, 2018 · 1 comment
Labels
T: enhancement Type: enhancement

Comments

@kapilkd13
Copy link
Contributor

Hi all, We are using libNeuroML library to load .nml file for our use case. Currently we are passing file path to NeuroMLLoader.load function and it is working fine. I want to know if it is possible to directly pass a file object instead of file path to load nml.
our reasons:

  1. It will allow us to convert a string into file object using stringIO and pass that.
  2. We won't have to deal with file handling and issues related to it.

will it be good functionality to have? I am willing to work on this functionality.

@pgleeson

@pgleeson
Copy link
Member

Sure, add that if you like. Note also there's a method in pyNeuroML here: https://github.com/NeuroML/pyNeuroML/blob/master/pyneuroml/pynml.py#L349, which I use more often, which can handle the include statements inside the NML file, which is important for network/channel files etc.

@sanjayankur31 sanjayankur31 added the T: enhancement Type: enhancement label May 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: enhancement Type: enhancement
Projects
None yet
Development

No branches or pull requests

3 participants