Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
d19a457
fix: correct install location for man files
sanjayankur31 Jan 4, 2022
dff640e
ci: drop py2
sanjayankur31 Jan 4, 2022
a18f548
feat(setup.py)!: drop py2
sanjayankur31 Jan 4, 2022
9cae4f5
refactor(pynml): use py3 type annotation syntax
sanjayankur31 Jan 4, 2022
94e30dc
refactor(NeuroMLTuner): use py3 typing annotation syntax
sanjayankur31 Jan 4, 2022
5bab32f
chore: make minor typing related fixes
sanjayankur31 Jan 4, 2022
5a14556
ci: enable coverage for pytest
sanjayankur31 Jan 4, 2022
4b580a7
ci: remove uneeded py3 check
sanjayankur31 Jan 4, 2022
163f2bc
fix: correct typing annotation for tempfile
sanjayankur31 Jan 4, 2022
ce3934f
feat: use standard collections for type annotations
sanjayankur31 Jan 4, 2022
c3a4c53
chore: add missing futures import
sanjayankur31 Jan 4, 2022
6cdee9b
feat: replace more typing annotations with standard collection annota…
sanjayankur31 Jan 4, 2022
9f9ab1f
Merge branch 'master' into development
pgleeson Jan 21, 2022
aaf49c0
ci: enable py3.10 support
sanjayankur31 Jan 31, 2022
c577565
To v0.6.0
pgleeson Feb 22, 2022
aa633f6
Merge pull request #162 from NeuroML/feat/drop-py2
pgleeson Feb 22, 2022
9cf479e
feat(neuron): document export utils
sanjayankur31 Mar 16, 2022
1df8381
feat(neuron): document export functions
sanjayankur31 Mar 16, 2022
7b23506
chore: remove travis badge
sanjayankur31 Mar 16, 2022
d3e6850
chore(ci): tweak ci workflow
sanjayankur31 Mar 16, 2022
1b6a8c8
chore: trigger GitHub actions
sanjayankur31 Mar 16, 2022
f187871
feat(docs): enable API docs for pyneuroml.neuron package
sanjayankur31 Mar 16, 2022
3394167
Merge pull request #164 from NeuroML/feat/document-neuron-export
pgleeson Apr 8, 2022
511d867
Remove for now type info not supported in < py3.9
pgleeson Apr 8, 2022
4de25ef
Adding initial eden support
pgleeson Apr 27, 2022
e28fd82
Jar for eden support
pgleeson Apr 27, 2022
a47a1d0
temp: squash
sanjayankur31 May 13, 2022
6885aec
To v0.7.0 using jnml jar v0.12.0
pgleeson May 19, 2022
5d1b697
Merge pull request #168 from NeuroML/experimental
pgleeson May 19, 2022
f634e93
Merge branch 'feat/167' into experimental
pgleeson May 19, 2022
0dc2844
Implemenmts run_lems_with_eden
pgleeson May 19, 2022
417b4fb
More eden tests
pgleeson May 19, 2022
7ef99b1
Updates to povray export
pgleeson May 26, 2022
674d418
Latest jnml jar - fixes for win compile on mac
pgleeson Jun 10, 2022
403ef5d
Merge pull request #169 from NeuroML/experimental
pgleeson Jun 10, 2022
105970c
Updating to latest jnml jar
pgleeson Jun 14, 2022
356de3e
Test realtime output
pgleeson Jun 22, 2022
25d034b
More verbose
pgleeson Jun 22, 2022
be2642d
Merge pull request #171 from NeuroML/realtime_output
pgleeson Jun 22, 2022
5af4ba4
Better handling realtime output
pgleeson Jun 23, 2022
12f7bf0
update np json
pgleeson Jun 29, 2022
0a8a0e5
To v0.7.1
pgleeson Jun 29, 2022
46cd9e3
Merge pull request #175 from NeuroML/test_netpyne_json
pgleeson Jul 4, 2022
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
20 changes: 13 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,25 @@ name: Continuous builds

on:
push:
branches: [ master, development, experimental, test* ]
branches:
- master
- development
- experimental
- 'test*'
pull_request:
branches: [ master, development, experimental, test* ]
branches:
- master
- development
- experimental
- 'test*'

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [2.7, 3.7, 3.8, 3.9]
python-version: ["3.7", "3.8", "3.9", "3.10"]
fail-fast: false

steps:
Expand Down Expand Up @@ -51,12 +59,10 @@ jobs:

- name: Run tests
run: |
pytest .
pytest --cov=pyneuroml .
pynml -h

# For now, only test neuron related examples on py3
if [[ ${{ matrix.python-version }} == "3."* ]]; then argnrn=-neuron ; fi
./test-ghactions.sh $argnrn
./test-ghactions.sh -neuron

- name: Lint with flake8
run: |
Expand Down
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,11 @@ examples/results/*.dat
/examples/test_data/ca1/*.hoc
.venv/
/examples/LEMS_NML2_Ex5_DetCell_brian2.py
/examples/*.gen.so
*_eden.py
/examples/test_data/Purk2M9s.nml.png
/examples/test_data/*.pov
/examples/test_data/ca1/*.pov
/examples/test_data/ca1/TestOLMNet.net.nml.png
/examples/LEMS_NML2_Ex5_DetCell_moose.py
/examples/NET_NML2_Ex5_DetCell.net.nml
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,3 @@ Builds on [Neurotune](https://github.com/NeuralEnsemble/neurotune) and [pyelectr

Built in viewer of cells in 3D? Mayavi?
More closely tied to PyNN?


[![Build Status](https://travis-ci.com/NeuroML/pyNeuroML.svg?branch=master)](https://travis-ci.com/NeuroML/pyNeuroML)
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ neuromllite
git+https://github.com/NeuralEnsemble/neurotune.git#egg=neurotune
git+https://github.com/NeuralEnsemble/pyelectro.git@master#egg=pyelectro
git+https://github.com/aarongarrett/inspyred.git@master#egg=inspyred
neuron
16 changes: 16 additions & 0 deletions docs/source/pyneuroml.neuron.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
pyneuroml.neuron package
==========================

.. automodule:: pyneuroml.neuron
:members:
:undoc-members:
:show-inheritance:

pyneuroml.neuron.analysis module
--------------------------------

.. automodule:: pyneuroml.neuron.analysis
:members:
:undoc-members:
:show-inheritance:

2 changes: 1 addition & 1 deletion docs/source/pyneuroml.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ Subpackages
pyneuroml.povray
pyneuroml.swc
pyneuroml.tune
pyneuroml.neuron

.. pyneuroml.neuron

pyneuroml.pynml module
----------------------
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.8.1
org.neuroml.model v1.8.1
jLEMS v0.10.6
org.neuroml.export v1.9.0
org.neuroml.model v1.9.0
jLEMS v0.10.7

ENDCOMMENT

Expand Down
6 changes: 6 additions & 0 deletions examples/generate_povray.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

from pyneuroml.povray.NeuroML2ToPOVRay import generate_povray

#generate_povray(neuroml_file='test_data/ca1/TestOLMNet.net.nml')

generate_povray(neuroml_file='test_data/Purk2M9s.nml', scalez=3)
13 changes: 13 additions & 0 deletions examples/run_jneuroml_plot_matplotlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@
)


####################################################################
# Run LEMS in EDEN


if "-eden" in sys.argv: # To allow skipping of this for ease of testing
print("Running with EDEN...")
results4 = pynml.run_lems_with_eden(
example_lems_file, load_saved_data=True, verbose=True
)


####################################################################
# Reload & plot results

Expand All @@ -51,6 +62,8 @@
plt.plot(results2["t"], results2[key], label="jNeuroML_NEURON: " + key)
if "-brian2" in sys.argv:
plt.plot(results3["t"], results3[key], label="jNeuroML_Brian2: " + key)
if "-eden" in sys.argv:
plt.plot(results4["t"], results4[key], label="EDEN: " + key)
plt.legend(loc=2, fontsize="x-small")

plt.show()
Loading