Skip to content

Commit

Permalink
Merge pull request #74 from LEMS/development
Browse files Browse the repository at this point in the history
Bump gha versions
  • Loading branch information
pgleeson authored Sep 11, 2023
2 parents 9052a1e + b8052aa commit 0eb3d1f
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
Expand Down
27 changes: 13 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
[![Check LEMS examples](https://github.com/LEMS/pylems/actions/workflows/examples.yml/badge.svg)](https://github.com/LEMS/pylems/actions/workflows/examples.yml)
[![Documentation Status](https://readthedocs.org/projects/pylems/badge/?version=latest)](https://pylems.readthedocs.io/en/latest/?badge=latest)


A LEMS (http://lems.github.io/LEMS) simulator written in Python which can be used to run NeuroML2 models (see [here](https://docs.neuroml.org/Userdocs/Software/pyLEMS.html)).

For more about PyLEMS see:
Expand All @@ -21,33 +20,35 @@ Robert C. Cannon, Padraig Gleeson, Sharon Crook, Gautham Ganapathy, Boris Marin,
**LEMS: A language for expressing complex biological models in concise and hierarchical form and its use in underpinning NeuroML 2**,
[Frontiers in Neuroinformatics 2014](http://journal.frontiersin.org/Journal/10.3389/fninf.2014.00079/abstract), doi: 10.3389/fninf.2014.00079


### Installation

A stable version of PyLEMS is [available on PyPI](https://pypi.python.org/pypi/PyLEMS) using [pip](https://pip.pypa.io/en/latest/installing.html):

pip install pylems
```
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
pip install .

```
git clone https://github.com/LEMS/pylems.git
cd pylems
git checkout development # optional
pip install .
```

### Usage as a LEMS model simulator

pylems [options] LEMS_file
```
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
Expand All @@ -70,7 +71,6 @@ Alternatively, you can obtain the latest version with
- Example 17 -- Working
- Example 18 -- Working


**LEMS examples (in directory examples)**

- example1.xml -- Working
Expand All @@ -79,9 +79,8 @@ Alternatively, you can obtain the latest version with
- 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

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**

Expand Down
3 changes: 3 additions & 0 deletions lems/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@
"""

import logging

try:
import importlib.metadata

__version__ = importlib.metadata.version("PyLEMS")
except ImportError:
import importlib_metadata

__version__ = importlib_metadata.version("PyLEMS")

logger = logging.getLogger("LEMS")
Expand Down
5 changes: 3 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
[metadata]
name = PyLEMS
version = 0.6.3
version = 0.6.4
author = PyLEMS authors and contributors
author_email = [email protected], [email protected]
maintainer_email = [email protected]
url = https://github.com/LEMS/pylems
description = A Python library for working with the Low Entropy Model Specification language (LEMS)
long_description = file: README.md, LICENSE.lesser
long_description = file: README.md
long_description_content_type=text/markdown
classifiers =
Intended Audience :: Science/Research
License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
Expand Down

0 comments on commit 0eb3d1f

Please sign in to comment.