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

Simplify JSON format #11

Closed
pgleeson opened this issue Mar 5, 2021 · 1 comment
Closed

Simplify JSON format #11

pgleeson opened this issue Mar 5, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@pgleeson
Copy link
Member

pgleeson commented Mar 5, 2021

Is your feature request related to a problem? Please describe.

The current specification in json for subelements with multiple children (cells, populations, projections) is a bit excessive in terms of lists/dicts:

       "populations": [
            {
                "pop0": {
                    "size": 5,
                    "component": "iaf",
                    "properties": {
                        "color": "0 .8 0"
                    }
                }
            },
            {
                "pop1": {
                    "size": 10,
                    "component": "iaf",
                    "properties": {
                        "color": "0 0 .8"
                    }
                }
            }
        ],

Describe the solution you'd like
Should be simpler (while still keeping same python API)

        "populations": {
            "pop0": {
                "size": 5,
                "component": "iaf",
                "properties": {
                    "color": "0 .8 0"
                }
            },
            "pop1": {
                "size": 10,
                "component": "iaf",
                "properties": {
                    "color": "0 0 .8"
                }
            }
        }

Fix for this in progress here: https://github.com/NeuroML/NeuroMLlite/tree/update_format

@pgleeson pgleeson added the enhancement New feature or request label Mar 5, 2021
@pgleeson
Copy link
Member Author

Implemented in #12

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

No branches or pull requests

1 participant