Skip to content

Commit

Permalink
Merge pull request #107 from NeuroML/feat/cell-builder-methods-105
Browse files Browse the repository at this point in the history
Add cell builder utility functions
  • Loading branch information
pgleeson authored Aug 31, 2022
2 parents c574e17 + 813217e commit 633452c
Show file tree
Hide file tree
Showing 13 changed files with 821 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
pip install pytest
pip install .
- name: List packages so far
Expand All @@ -63,7 +62,6 @@ jobs:
- name: Run tests
run: |
pytest --cov=pyneuroml .
pynml -h
./test-ghactions.sh -neuron
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ install:
#- pip install git+https://github.com/NeuralEnsemble/pyelectro.git

- pip install --upgrade pip
- pip install flake8
- pip install flake8 pytest
- pip install .

script:
Expand Down
1 change: 1 addition & 0 deletions docs/source/pyneuroml.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Subpackages
pyneuroml.swc
pyneuroml.tune
pyneuroml.neuron
pyneuroml.utils


pyneuroml.pynml module
Expand Down
16 changes: 16 additions & 0 deletions docs/source/pyneuroml.utils.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
pyneuroml.utils package
==========================

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

pyneuroml.utils.CellBuilder module
---------------------------------------------

.. automodule:: pyneuroml.utils.CellBuilder
:members:
:undoc-members:
:show-inheritance:

3 changes: 1 addition & 2 deletions pyneuroml/pynml.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"""

from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals

# py3.7, 3.8 require this to use standard collections as generics
Expand Down Expand Up @@ -1094,7 +1093,7 @@ def write_neuroml2_file(
writers.NeuroMLWriter.write(nml2_doc, nml2_file_name)

if validate:
validate_neuroml2(nml2_file_name, verbose_validate)
return validate_neuroml2(nml2_file_name, verbose_validate)


def read_lems_file(
Expand Down
Loading

0 comments on commit 633452c

Please sign in to comment.