Skip to content

Commit 2e9cd9c

Browse files
authored
Merge pull request #488 from ModECI/development
To v0.4.8, includes Outreachy May 2023 work
2 parents 4273a98 + c147789 commit 2e9cd9c

File tree

150 files changed

+290393
-517
lines changed

Some content is hidden

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

150 files changed

+290393
-517
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ jobs:
1313
name: Format
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v1
17-
- uses: actions/setup-python@v2
18-
- uses: pre-commit/[email protected]
16+
- uses: actions/checkout@v3
17+
- uses: actions/setup-python@v4
18+
with:
19+
python-version: "3.10"
20+
- uses: pre-commit/[email protected]
1921
with:
2022
extra_args: --hook-stage manual --all-files
2123

@@ -29,9 +31,9 @@ jobs:
2931
runs-on: [ubuntu-latest, macos-latest, windows-latest]
3032

3133
steps:
32-
- uses: actions/checkout@v2
34+
- uses: actions/checkout@v3
3335

34-
- uses: actions/setup-python@v2
36+
- uses: actions/setup-python@v4
3537
with:
3638
python-version: ${{ matrix.python-version }}
3739

@@ -58,9 +60,9 @@ jobs:
5860
run: |
5961
python -m pytest -m coremdf tests/
6062
61-
- name: Install optional dependencies
63+
- name: Install most optional dependencies
6264
run: |
63-
python -m pip install .[all]
65+
python -m pip install .[all_except_psyneulink]
6466
6567
- name: Version info for optional installed packages
6668
run: |
@@ -87,11 +89,6 @@ jobs:
8789
run: |
8890
python -m pytest -v -m "neuroml" tests/
8991
90-
- name: Test interface PsyNeuLink
91-
if: ${{ matrix.python-version != '3.10' }}
92-
run: |
93-
python -m pytest -v -m "psyneulink" tests/
94-
9592
- name: Test interface TensorFlow linux/mac
9693
if: ${{ matrix.runs-on != 'windows-latest' }}
9794
run: |
@@ -105,6 +102,20 @@ jobs:
105102
dot -V
106103
python -m pytest -v -m "tensorflow" tests/
107104
105+
- name: Test interface PsyNeuLink
106+
if: ${{ matrix.python-version != '3.10' }}
107+
run: |
108+
python -m pip install .[psyneulink]
109+
python -m pytest -v -m "psyneulink" tests/
110+
111+
- name: Build Documentation
112+
run: |
113+
cd docs
114+
python generate.py
115+
cd sphinx
116+
make clean
117+
make html
118+
108119
- name: Final version info for optional installed packages
109120
run: |
110121
pip list
@@ -114,12 +125,12 @@ jobs:
114125
runs-on: ubuntu-latest
115126

116127
steps:
117-
- uses: actions/checkout@v1
128+
- uses: actions/checkout@v3
118129

119130
- name: Build sdist and wheel
120131
run: pipx run --spec build pyproject-build
121132

122-
- uses: actions/upload-artifact@v2
133+
- uses: actions/upload-artifact@v3
123134
with:
124135
path: dist
125136

.gitignore

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,3 +278,32 @@ Thumbs.db #thumbnail cache on Windows
278278
/examples/NeuroML/arm64
279279
/examples/MDF/RNN/iaf.net
280280
/examples/MDF/RNN/iaf.net2
281+
/examples/TensorFlow/Keras/keras_to_MDF
282+
/examples/NeuroML/PyNN/All*
283+
/examples/NeuroML/PyNN/*dat
284+
/examples/NeuroML/PyNN/*1.png
285+
/examples/NeuroML/PyNN/*.1
286+
/examples/NeuroML/PyNN/arm64
287+
/examples/NeuroML/PyNN/*.pkl
288+
/examples/NeuroML/PyNN/*.json
289+
/examples/NeuroML/PyNN/*.mdf
290+
/examples/NeuroML/PyNN/*.spikes
291+
*_code.gen.c
292+
examples/TensorFlow/Keras/Keras_to_MDF_IRIS/keras_to_MDF
293+
examples/TensorFlow/Keras/keras_to_MDF
294+
/examples/TensorFlow/Keras/Keras_MDF/Keras_to_MDF_IRIS/keras_to_MDF
295+
/examples/TensorFlow/Keras/Keras_MDF/keras_to_MDF
296+
/examples/NeuroML/PyNN/HH.yaml
297+
/examples/NeuroML/PyNN/InputWeights.yaml
298+
/examples/NeuroML/PyNN/Net1.yaml
299+
/examples/NeuroML/PyNN/OneCell.yaml
300+
/examples/NeuroML/PyNN/SimHH.yaml
301+
/examples/NeuroML/PyNN/SimNet1.yaml
302+
/examples/NeuroML/PyNN/SimOneCell.yaml
303+
/examples/NeuroML/PyNN/SimSimpleNet.yaml
304+
/examples/NeuroML/PyNN/SimpleNet.yaml
305+
/examples/NeuroML/PyNN/SimInputWeights.yaml
306+
/examples/TensorFlow/Keras/IRIS/keras_to_MDF
307+
/examples/TensorFlow/Keras/MNIST/keras_to_MDF
308+
/examples/TensorFlow/Keras/MNIST/keras_to_MDF.1
309+
/examples/TensorFlow/Keras/IRIS/keras_to_MDF.1

docs/sphinx/source/api/QuickStart.md

Lines changed: 6 additions & 0 deletions
Large diffs are not rendered by default.
1.89 KB
Loading
21.1 KB
Loading

docs/sphinx/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,14 +145,14 @@ def setup(app):
145145
"pytest": ("https://docs.pytest.org/en/stable", None),
146146
}
147147

148-
from sphinx.ext.autodoc import ClassLevelDocumenter, InstanceAttributeDocumenter
148+
from sphinx.ext.autodoc import ClassLevelDocumenter, AttributeDocumenter
149149

150150

151151
def add_directive_header(self, sig):
152152
ClassLevelDocumenter.add_directive_header(self, sig)
153153

154154

155-
InstanceAttributeDocumenter.add_directive_header = add_directive_header
155+
AttributeDocumenter.add_directive_header = add_directive_header
156156

157157

158158
import os

examples/ACT-R/addition.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"addition": {
33
"format": "ModECI MDF v0.4",
4-
"generating_application": "Python modeci-mdf v0.4.7",
4+
"generating_application": "Python modeci-mdf v0.4.8",
55
"graphs": {
66
"addition_graph": {
77
"nodes": {

examples/ACT-R/addition.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
addition:
22
format: ModECI MDF v0.4
3-
generating_application: Python modeci-mdf v0.4.7
3+
generating_application: Python modeci-mdf v0.4.8
44
graphs:
55
addition_graph:
66
nodes:

examples/ACT-R/count.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"count": {
33
"format": "ModECI MDF v0.4",
4-
"generating_application": "Python modeci-mdf v0.4.7",
4+
"generating_application": "Python modeci-mdf v0.4.8",
55
"graphs": {
66
"count_graph": {
77
"nodes": {

examples/ACT-R/count.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
count:
22
format: ModECI MDF v0.4
3-
generating_application: Python modeci-mdf v0.4.7
3+
generating_application: Python modeci-mdf v0.4.8
44
graphs:
55
count_graph:
66
nodes:

0 commit comments

Comments
 (0)