Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
7c279b5
doc: document usage of generate_plots utility function
sanjayankur31 Feb 26, 2021
8c08c17
enh(ci): enable GH actions
sanjayankur31 Feb 26, 2021
21a77b8
Merge pull request #83 from sanjayankur31/enh/enable-github-actions
sanjayankur31 Feb 26, 2021
3e6d4c9
fix(ghactions): fix yaml syntax
sanjayankur31 Feb 26, 2021
acb2e7c
Merge pull request #84 from sanjayankur31/development
sanjayankur31 Feb 26, 2021
d59a598
fix(requirements): remove duplicates
sanjayankur31 Feb 26, 2021
2e1eeea
fix(ghactions): use setup.py to build package
sanjayankur31 Feb 26, 2021
1153e14
Merge branch 'master' into development
sanjayankur31 Feb 26, 2021
d48b092
enh: modify test script for GH actions
sanjayankur31 Feb 27, 2021
7aeb3b0
docs: add badges
sanjayankur31 Feb 27, 2021
8b74830
enh(docs): add links to badges
sanjayankur31 Feb 27, 2021
a2ebec0
enh(docs): include installation instructions on Fedora/NeuroFedora
sanjayankur31 Feb 27, 2021
3753080
enh: add both GH actions and Travis badges
sanjayankur31 Mar 1, 2021
4c7654e
chore: use better name for CI
sanjayankur31 Mar 1, 2021
7631308
chore: update supported python versions
sanjayankur31 Mar 1, 2021
c01ec45
docs: add information about necessary dependencies
sanjayankur31 Mar 1, 2021
b8a666b
Merge pull request #82 from sanjayankur31/enh/document-generate-plots…
pgleeson Mar 3, 2021
f3d88e2
Merge pull request #85 from NeuroML/docs/add-dep-info
pgleeson Mar 11, 2021
16b139a
To v0.5.10 using jnml 0.10.2
pgleeson Mar 18, 2021
ced8a8b
enh: allow pynml to process multiple files
sanjayankur31 Mar 19, 2021
d78c650
Merge pull request #91 from NeuroML/enh/validate-multiple
pgleeson Mar 22, 2021
cd0c7d6
Latest jar for v2.1 release
pgleeson Mar 22, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Continuous builds

on:
push:
branches: [ master, development ]
pull_request:
branches: [ master, development ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [2.7, 3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install package
run: |
python -m pip install --upgrade pip
pip install flake8
pip install .
- name: Lint with flake8
run: |
flake8 . --count --exit-zero --show-source --max-line-length=127 --statistics
- name: Run tests
run: |
pynml -h
./test-ghactions.sh
39 changes: 35 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,53 @@
pyNeuroML
=========

[![GitHub CI](https://github.com/NeuroML/pyNeuroML/actions/workflows/ci.yml/badge.svg)](https://github.com/NeuroML/pyNeuroML/actions/workflows/ci.yml)
[![Travis CI](https://travis-ci.com/NeuroML/pyNeuroML.svg?branch=master)](https://travis-ci.com/NeuroML/pyNeuroML)
[![PyPI](https://img.shields.io/pypi/v/pyNeuroML)](https://pypi.org/project/pyNeuroML/)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pyNeuroML)](https://pypi.org/project/pyNeuroML/)
[![GitHub](https://img.shields.io/github/license/NeuroML/pyNeuroML)](https://github.com/NeuroML/pyNeuroML/blob/master/LICENSE.lesser)
[![GitHub pull requests](https://img.shields.io/github/issues-pr/NeuroML/pyNeuroML)](https://github.com/NeuroML/pyNeuroML/pulls)
[![GitHub issues](https://img.shields.io/github/issues/NeuroML/pyNeuroML)](https://github.com/NeuroML/pyNeuroML/issues)
[![GitHub Org's stars](https://img.shields.io/github/stars/NeuroML?style=social)](https://github.com/NeuroML)
[![Twitter Follow](https://img.shields.io/twitter/follow/NeuroML?style=social)](https://twitter.com/NeuroML)

A single package in Python unifying scripts and modules for reading, writing, simulating and analysing NeuroML2/LEMS models.

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

Installation
------------

### Dependencies

pyNeuroML relies on additional software to carry out its functions:

- Java Runtime environment (JRE)
- dot (from [Graphviz](http://graphviz.org/))
- lxml

On most Linux systems, these can be installed using the default package manager.
On Ubuntu based distributions:

sudo apt-get install python-lxml graphviz openjdk-11-jdk


### Pip

pyNeuroML can be installed with pip:
pyNeuroML can be installed with pip (preferably in a [virtual environment](https://docs.python.org/3/tutorial/venv.html)):

pip install pyneuroml

### Fedora

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

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

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

### Installation from source

Expand Down
6 changes: 3 additions & 3 deletions examples/LeakConductance.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ TITLE Mod file for component: Component(id=LeakConductance type=ionChannelHH)
COMMENT

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

ENDCOMMENT

Expand Down
4 changes: 2 additions & 2 deletions pyneuroml/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@


__version__ = '0.5.9'
__version__ = '0.5.11'

JNEUROML_VERSION = '0.10.1'
JNEUROML_VERSION = '0.10.3'
Binary file not shown.
Loading