Skip to content

Commit 1180c4f

Browse files
authored
Merge pull request #65 from LEMS/development
NeuroML 2.2 release
2 parents cec5767 + 5ba6418 commit 1180c4f

49 files changed

Lines changed: 9535 additions & 2567 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/examples.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Check that examples are same in pylems and in jlems
2+
name: Check LEMS examples
3+
4+
on:
5+
push:
6+
branches: [ master, development, experimental ]
7+
8+
jobs:
9+
verify:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: nelonoel/[email protected]
16+
17+
# https://stackoverflow.com/questions/58033366/how-to-get-current-branch-within-github-actions
18+
- name: Extract branch name
19+
shell: bash
20+
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
21+
id: extract_branch
22+
23+
- name: Checkout jlems
24+
uses: actions/checkout@v2
25+
with:
26+
repository: LEMS/jLEMS
27+
ref: ${{ steps.extract_branch.outputs.branch }}
28+
path: jlems
29+
30+
- name: check examples
31+
run: |
32+
for ex in "example1.xml" "example2.xml" "example3.xml" "example4.xml" "example5.xml" "example6.xml" "example7.xml" "example8.xml" "bounce-conditional.xml" ; do
33+
34+
if ! diff -ur "examples/$ex" "jlems/src/test/resources/$ex" ; then
35+
echo "Example file $ex is not identical"
36+
exit -1
37+
fi
38+
done
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This workflow will upload a Python Package using Twine when a release is created
2+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3+
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
9+
name: Upload Python Package
10+
11+
on:
12+
release:
13+
types: [published]
14+
15+
jobs:
16+
deploy:
17+
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Set up Python
23+
uses: actions/setup-python@v2
24+
with:
25+
python-version: '3.x'
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install build
30+
- name: Build package
31+
run: python -m build
32+
- name: Publish package
33+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
34+
with:
35+
user: __token__
36+
password: ${{ secrets.PYPI_API_TOKEN }}

README.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
## PyLEMS
1+
## PyLEMS
22

3-
[![Documentation Status](https://readthedocs.org/projects/pylems/badge/?version=latest)](https://pylems.readthedocs.io/en/latest/?badge=latest)
3+
[![Build](https://github.com/LEMS/pylems/actions/workflows/ci.yml/badge.svg)](https://github.com/LEMS/pylems/actions/workflows/ci.yml) [![Documentation Status](https://readthedocs.org/projects/pylems/badge/?version=latest)](https://pylems.readthedocs.io/en/latest/?badge=latest)
44

55

66
A LEMS (http://lems.github.io/LEMS) simulator written in Python which can be used to run NeuroML2 (http://neuroml.org/neuroml2.php) models.
@@ -13,10 +13,10 @@ Michael Vella, Robert C. Cannon, Sharon Crook, Andrew P. Davison, Gautham Ganapa
1313

1414
_**PLEASE CITE THE PAPER ABOVE IF YOU USE PYLEMS!**_
1515

16-
For more details on LEMS see:
16+
For more details on LEMS see:
1717

18-
Robert C. Cannon, Padraig Gleeson, Sharon Crook, Gautham Ganapathy, Boris Marin, Eugenio Piasini and R. Angus Silver,
19-
**LEMS: A language for expressing complex biological models in concise and hierarchical form and its use in underpinning NeuroML 2**,
18+
Robert C. Cannon, Padraig Gleeson, Sharon Crook, Gautham Ganapathy, Boris Marin, Eugenio Piasini and R. Angus Silver,
19+
**LEMS: A language for expressing complex biological models in concise and hierarchical form and its use in underpinning NeuroML 2**,
2020
[Frontiers in Neuroinformatics 2014](http://journal.frontiersin.org/Journal/10.3389/fninf.2014.00079/abstract), doi: 10.3389/fninf.2014.00079
2121

2222

@@ -33,7 +33,7 @@ To install as root:
3333
Alternatively, you can obtain the latest version with
3434

3535
git clone https://github.com/LEMS/pylems.git
36-
cd pylems
36+
cd pylems
3737
git checkout development # optional
3838
sudo python setup.py install
3939

@@ -81,9 +81,9 @@ Alternatively, you can obtain the latest version with
8181
- example5.xml -- Not working (Unsupported in PyLEMS: KSChannel)
8282
- example6.xml -- Working
8383
-- TODO: Rest of examples require an update to the `<Simulation>` element,
84-
i.e. use `<Simulation...>` not `<SimulationSet...>`, to work in PyLEMS
84+
i.e. use `<Simulation...>` not `<SimulationSet...>`, to work in PyLEMS
85+
8586

86-
8787
**LEMS elements that do not work**
8888

8989
- KSChannel
@@ -105,5 +105,3 @@ pylems is integrated with the the [Travis Continuous Integration service](http:/
105105
[![Build Status](https://travis-ci.com/LEMS/pylems.png?branch=master)](https://travis-ci.com/LEMS/pylems)
106106

107107
This code is distributed under the terms of the GNU Lesser General Public License.
108-
109-

ci/run-examples-ghactions.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Copyright 2021 LEMS contributors
4-
# Author: Ankur Sinha <sanjay DOT ankur AT gmail DOT com>
4+
# Author: Ankur Sinha <sanjay DOT ankur AT gmail DOT com>
55
# File : run-examples-ghactions.sh
66
#
77
# Run tests on GitHub actions
@@ -16,6 +16,7 @@ echo "Running standard LEMS examples"
1616
#./pylems examples/example4.xml -nogui # Not working (Unsupported in PyLEMS: KSChannel)
1717
#./pylems examples/example5.xml -nogui # Not working (Unsupported in PyLEMS: KSChannel)
1818
./pylems examples/example6.xml -nogui
19+
./pylems examples/bounce-conditional.xml -nogui
1920
# Rest of examples require an update to the <Simulation> element, i.e. use <Simulation...> not <SimulationSet...>, to work in PyLEMS
2021

2122
### Try running NeuroML 2 examples

0 commit comments

Comments
 (0)