Skip to content

Commit 9e07046

Browse files
authored
Merge pull request #90 from NeuroML/development
For NML v2.1 release
2 parents 4698f89 + cd0c7d6 commit 9e07046

File tree

8 files changed

+501
-176
lines changed

8 files changed

+501
-176
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Continuous builds
2+
3+
on:
4+
push:
5+
branches: [ master, development ]
6+
pull_request:
7+
branches: [ master, development ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
python-version: [2.7, 3.7, 3.8, 3.9]
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- name: Install package
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install flake8
27+
pip install .
28+
- name: Lint with flake8
29+
run: |
30+
flake8 . --count --exit-zero --show-source --max-line-length=127 --statistics
31+
- name: Run tests
32+
run: |
33+
pynml -h
34+
./test-ghactions.sh

README.md

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,53 @@
11
pyNeuroML
22
=========
33

4+
[![GitHub CI](https://github.com/NeuroML/pyNeuroML/actions/workflows/ci.yml/badge.svg)](https://github.com/NeuroML/pyNeuroML/actions/workflows/ci.yml)
5+
[![Travis CI](https://travis-ci.com/NeuroML/pyNeuroML.svg?branch=master)](https://travis-ci.com/NeuroML/pyNeuroML)
6+
[![PyPI](https://img.shields.io/pypi/v/pyNeuroML)](https://pypi.org/project/pyNeuroML/)
7+
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pyNeuroML)](https://pypi.org/project/pyNeuroML/)
8+
[![GitHub](https://img.shields.io/github/license/NeuroML/pyNeuroML)](https://github.com/NeuroML/pyNeuroML/blob/master/LICENSE.lesser)
9+
[![GitHub pull requests](https://img.shields.io/github/issues-pr/NeuroML/pyNeuroML)](https://github.com/NeuroML/pyNeuroML/pulls)
10+
[![GitHub issues](https://img.shields.io/github/issues/NeuroML/pyNeuroML)](https://github.com/NeuroML/pyNeuroML/issues)
11+
[![GitHub Org's stars](https://img.shields.io/github/stars/NeuroML?style=social)](https://github.com/NeuroML)
12+
[![Twitter Follow](https://img.shields.io/twitter/follow/NeuroML?style=social)](https://twitter.com/NeuroML)
13+
414
A single package in Python unifying scripts and modules for reading, writing, simulating and analysing NeuroML2/LEMS models.
515

616
Builds on: [libNeuroML](https://github.com/NeuralEnsemble/libNeuroML) & [PyLEMS](https://github.com/LEMS/pylems) and wraps functionality from [jNeuroML](https://github.com/NeuroML/jNeuroML).
717

818
Installation
919
------------
1020

21+
### Dependencies
22+
23+
pyNeuroML relies on additional software to carry out its functions:
24+
25+
- Java Runtime environment (JRE)
26+
- dot (from [Graphviz](http://graphviz.org/))
27+
- lxml
28+
29+
On most Linux systems, these can be installed using the default package manager.
30+
On Ubuntu based distributions:
31+
32+
sudo apt-get install python-lxml graphviz openjdk-11-jdk
33+
34+
1135
### Pip
1236

13-
pyNeuroML can be installed with pip:
37+
pyNeuroML can be installed with pip (preferably in a [virtual environment](https://docs.python.org/3/tutorial/venv.html)):
38+
39+
pip install pyneuroml
40+
41+
### Fedora
1442

15-
sudo pip install pyneuroml
43+
The [NeuroFedora](https://neuro.fedoraproject.org) community initiative provides pyNeuroML for use on the [Fedora Linux Distribution](https://getfedora.org).
44+
Fedora users can install pyNeuroML using the following commands:
1645

17-
You may need to install lxml on Linux with:
46+
sudo dnf copr enable @neurofedora/neurofedora-extra
47+
sudo dnf install python3-pyneuroml
1848

19-
sudo apt-get install python-lxml
49+
This will also pull in all the necessary dependencies (Java, lxml, graphviz).
50+
Please see the [project documentation](https://docs.fedoraproject.org/en-US/neurofedora/copr/) for more information.
2051

2152
### Installation from source
2253

examples/LeakConductance.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ TITLE Mod file for component: Component(id=LeakConductance type=ionChannelHH)
33
COMMENT
44

55
This NEURON file has been generated by org.neuroml.export (see https://github.com/NeuroML/org.neuroml.export)
6-
org.neuroml.export v1.7.1
7-
org.neuroml.model v1.7.1
8-
jLEMS v0.10.3
6+
org.neuroml.export v1.7.2
7+
org.neuroml.model v1.7.2
8+
jLEMS v0.10.4
99

1010
ENDCOMMENT
1111

pyneuroml/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

22

3-
__version__ = '0.5.9'
3+
__version__ = '0.5.11'
44

5-
JNEUROML_VERSION = '0.10.1'
5+
JNEUROML_VERSION = '0.10.3'

0 commit comments

Comments
 (0)