Git Product home page Git Product logo

nineml-python's Introduction

NineML Python Library

Unit Test Status

Unit Test Coverage

Supported Python versions

Latest Version

Documentation Status

NineML (9ML) is a language for describing the dynamics and connectivity of neuronal network simulations (http://nineml.net), which is defined by the NineML specification.

The NineML Python Library is a software package written in Python, which maps the NineML object model onto Python classes for convenient creation, manipulation and validation of NineML models, as well as handling their serialisation to and from XML, JSON, YAML, and HDF5.

Relation to the NineML Specification

The layout of the Python modules and classes in the NineML Python Library relates closely to the structure of the NineML specification (v1.0). However, there are notable exceptions where the NineML Python Library uses names and relationships that are planned to be changed in v2.0 of the specification (the NineML Python Library will be backwards compatible), such as the renaming of ComponentClass elements to separate Dynamics, ConnectionRule and RandomDistribution elements (see INCF/nineml-spec#94). A full list of changes planned for NineML v2.0 can be found at https://github.com/INCF/nineml/milestone/3. When serializing 9ML models the version 1.0 syntax is used unless the version=2 keyword argument is provided.

In addition to classes that directly correspond to the 9ML object model, a range of shorthand notations ("syntactic sugar") exist to make writing 9ML models by hand more convenient (see the nineml.sugar module). These notations are frequently demonstrated in the examples directory of the repository.

The NineML Catalog

The NineML Catalog contains a collection of validated NineML models, which can be loaded and maninpulated with the NineML Python Library. If you create a model that you believe will be of wider use to the computational neuroscience community please consider contributing to the catalog via a pull request.

Installation

HDF5 (dev)

To add support to read or write HDF5 serialisations you must first install a HDF5 dev library (i.e. with the C headers).

On macOS HDF5 can be installed using Homebrew:

$ brew install hdf5

On Ubuntu/Debian HDF5 can be installed by one of the following packages:

  • libhdf5-serial-dev (serial)
  • libhdf5-openmpi-dev (parallel with Open MPI)
  • libhdf5-mpich-dev (parallel with MPICH)

If you don't install HDF5 the other serialisation formats can still be used but you will need to install the package manually (i.e. not use pip).

Pip

The NineML Python Library can be installed using pip:

$ pip install nineml
copyright

Copyright 20011-2017 by the NineML Python Library team, see AUTHORS.

license

BSD 3, see LICENSE for details.

nineml-python's People

Contributors

tclose avatar apdavison avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.