Skip to content

Create executable to print summary information #8

Description

@pgleeson

There is a utility in pyNeuroML which can print the summary info in a NeuroML file, e.g. this file
https://github.com/NeuralEnsemble/libNeuroML/blob/development/neuroml/examples/test_files/simplenet.nml
with:

 pynml-summary simplenet.nml

prints:

*******************************************************
* NeuroMLDocument: simplenet
*
*   ExpTwoSynapse: ['syn0']
*   IafCell: ['iaf0']
*   PulseGenerator: ['input0', 'input1', 'input2', 'input3', 'input4']
*
*  Network: simplenet
*
*   10 cells in 2 populations 
*     Population: Pop0 with 5 components of type iaf0
*     Population: Pop1 with 5 components of type iaf0
*
*   16 connections in 1 projections 
*     Projection: Proj0 from Pop0 to Pop1, synapse: syn0
*       16 connections: [(Connection 0: 0 -> 0), ...]
*
*   5 inputs in 5 input lists 
*     Input list: il0 to Pop0, component input0
*       1 inputs: [(Input 0: 0:0(0.500000)), ...]
*     Input list: il1 to Pop0, component input1
*       1 inputs: [(Input 0: 1:0(0.500000)), ...]
*     Input list: il2 to Pop0, component input2
*       1 inputs: [(Input 0: 2:0(0.500000)), ...]
*     Input list: il3 to Pop0, component input3
*       1 inputs: [(Input 0: 3:0(0.500000)), ...]
*     Input list: il4 to Pop0, component input4
*       1 inputs: [(Input 0: 4:0(0.500000)), ...]
*
*******************************************************

It would be useful if there was a similar executable cnml-summary which gets created when the NeuroML_API is installed (with sudo make install).

Ideally this will be faster than the Python version for large files... An initial parsing of the XML file can be seen here: https://github.com/NeuroML/NeuroML_API/blob/master/test/example.cxx#L21

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions