Skip to main content

A Python library for working with the Low Entropy Model Specification language (LEMS)

Project description

PyLEMS

A LEMS (http://lems.github.io/LEMS) simulator written in Python which can be used to run NeuroML2 (http://neuroml.org/neuroml2.php) models.

For more about PyLEMS see:

Michael Vella, Robert C. Cannon, Sharon Crook, Andrew P. Davison, Gautham Ganapathy, Hugh P. C. Robinson, R. Angus Silver and Padraig Gleeson, libNeuroML and PyLEMS: using Python to combine procedural and declarative modeling approaches in computational neuroscience Frontiers in Neuroinformatics 2014, doi: 10.3389/fninf.2014.00038

PLEASE CITE THE PAPER ABOVE IF YOU USE PYLEMS!

For more details on LEMS see:

Robert C. Cannon, Padraig Gleeson, Sharon Crook, Gautham Ganapathy, Boris Marin, Eugenio Piasini and R. Angus Silver, LEMS: A language for expressing complex biological models in concise and hierarchical form and its use in underpinning NeuroML 2, Frontiers in Neuroinformatics 2014, doi: 10.3389/fninf.2014.00079

Installation

A stable version of PyLEMS is available on PyPI using pip:

pip install pylems

To install as root:

sudo pip install pylems

Alternatively, you can obtain the latest version with

git clone https://github.com/LEMS/pylems.git
cd pylems 
git checkout development   # optional
sudo python setup.py install

Usage as a LEMS model simulator

pylems [options] LEMS_file

Options

  • -I/-include path - Adds a directory to the model file include search path

Examples

NeuroML examples (from https://github.com/NeuroML/NeuroML2/tree/development/NeuroML2CoreTypes)

  • Example 0 -- Working
  • Example 1 -- Working
  • Example 2 -- Working
  • Example 3 -- Working
  • Example 4 -- Not working (Unsupported in PyLEMS: KSChannel)
  • Example 5 -- Working
  • Example 6 -- Working
  • Example 7 -- Working
  • Example 8 -- Working
  • Example 9 -- Working
  • Example 10 -- Working
  • Example 11 -- Working
  • Example 12 -- Not working (Unsupported in PyLEMS: Property)
  • Example 13 -- Working
  • Example 14 -- Not working (Unsupported in PyLEMS: Property)
  • Example 15 -- Working
  • Example 16 -- Working (apart from spikeArray)
  • Example 17 -- Working
  • Example 18 -- Working

LEMS examples (in directory examples)

  • example1.xml -- Working
  • example2.xml -- Working
  • example3.xml -- Working
  • example4.xml -- Not working (Unsupported in PyLEMS: KSChannel)
  • example5.xml -- Not working (Unsupported in PyLEMS: KSChannel)
  • example6.xml -- Working -- TODO: Rest of examples require an update to the <Simulation> element, i.e. use <Simulation...> not <SimulationSet...>, to work in PyLEMS

LEMS elements that do not work

  • KSChannel
  • Property
  • XPath based parameters - PathParameter
  • Assertions

Tasks TODO

  • Implement flattening
  • Decouple events from runnables
  • Improve dimension-checking on expressions.

Travis integration

pylems is integrated with the the Travis Continuous Integration service.

Build Status

This code is distributed under the terms of the GNU Lesser General Public License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyLEMS-0.5.1.tar.gz (66.0 kB view details)

Uploaded Source

Built Distribution

PyLEMS-0.5.1-py2-none-any.whl (64.3 kB view details)

Uploaded Python 2

File details

Details for the file PyLEMS-0.5.1.tar.gz.

File metadata

  • Download URL: PyLEMS-0.5.1.tar.gz
  • Upload date:
  • Size: 66.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.23.4 CPython/2.7.15

File hashes

Hashes for PyLEMS-0.5.1.tar.gz
Algorithm Hash digest
SHA256 a43a24374ecb3243a131081c67fbd2a784f3a9d4137eb4fd2436ede6f44c474e
MD5 c78059e5df7c685f3689ef55ddd5c7a0
BLAKE2b-256 995e3544504a8607874084423c3bef927f2ebb6d4a0bfe39b52a0adc574cf9d1

See more details on using hashes here.

File details

Details for the file PyLEMS-0.5.1-py2-none-any.whl.

File metadata

  • Download URL: PyLEMS-0.5.1-py2-none-any.whl
  • Upload date:
  • Size: 64.3 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.23.4 CPython/2.7.15

File hashes

Hashes for PyLEMS-0.5.1-py2-none-any.whl
Algorithm Hash digest
SHA256 3ea1fc5c594a7a47cdaf2003449ce256f39ae59b9b8735fde1e9f49f6ad36d9a
MD5 c02c0c952f19af816e0a51e873d7ae21
BLAKE2b-256 7dff33ede358724bebd8dc537a39033d481b6e7d34ce31f20dc1cc15f4205b7c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page