Skip to content

Commit

Permalink
Merge pull request #488 from ModECI/development
Browse files Browse the repository at this point in the history
To v0.4.8, includes Outreachy May 2023 work
  • Loading branch information
pgleeson authored Sep 15, 2023
2 parents 4273a98 + c147789 commit 2e9cd9c
Show file tree
Hide file tree
Showing 150 changed files with 290,393 additions and 517 deletions.
39 changes: 25 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ jobs:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v2
- uses: pre-commit/[email protected]
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- uses: pre-commit/[email protected]
with:
extra_args: --hook-stage manual --all-files

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

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -58,9 +60,9 @@ jobs:
run: |
python -m pytest -m coremdf tests/
- name: Install optional dependencies
- name: Install most optional dependencies
run: |
python -m pip install .[all]
python -m pip install .[all_except_psyneulink]
- name: Version info for optional installed packages
run: |
Expand All @@ -87,11 +89,6 @@ jobs:
run: |
python -m pytest -v -m "neuroml" tests/
- name: Test interface PsyNeuLink
if: ${{ matrix.python-version != '3.10' }}
run: |
python -m pytest -v -m "psyneulink" tests/
- name: Test interface TensorFlow linux/mac
if: ${{ matrix.runs-on != 'windows-latest' }}
run: |
Expand All @@ -105,6 +102,20 @@ jobs:
dot -V
python -m pytest -v -m "tensorflow" tests/
- name: Test interface PsyNeuLink
if: ${{ matrix.python-version != '3.10' }}
run: |
python -m pip install .[psyneulink]
python -m pytest -v -m "psyneulink" tests/
- name: Build Documentation
run: |
cd docs
python generate.py
cd sphinx
make clean
make html
- name: Final version info for optional installed packages
run: |
pip list
Expand All @@ -114,12 +125,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3

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

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
path: dist

Expand Down
29 changes: 29 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -278,3 +278,32 @@ Thumbs.db #thumbnail cache on Windows
/examples/NeuroML/arm64
/examples/MDF/RNN/iaf.net
/examples/MDF/RNN/iaf.net2
/examples/TensorFlow/Keras/keras_to_MDF
/examples/NeuroML/PyNN/All*
/examples/NeuroML/PyNN/*dat
/examples/NeuroML/PyNN/*1.png
/examples/NeuroML/PyNN/*.1
/examples/NeuroML/PyNN/arm64
/examples/NeuroML/PyNN/*.pkl
/examples/NeuroML/PyNN/*.json
/examples/NeuroML/PyNN/*.mdf
/examples/NeuroML/PyNN/*.spikes
*_code.gen.c
examples/TensorFlow/Keras/Keras_to_MDF_IRIS/keras_to_MDF
examples/TensorFlow/Keras/keras_to_MDF
/examples/TensorFlow/Keras/Keras_MDF/Keras_to_MDF_IRIS/keras_to_MDF
/examples/TensorFlow/Keras/Keras_MDF/keras_to_MDF
/examples/NeuroML/PyNN/HH.yaml
/examples/NeuroML/PyNN/InputWeights.yaml
/examples/NeuroML/PyNN/Net1.yaml
/examples/NeuroML/PyNN/OneCell.yaml
/examples/NeuroML/PyNN/SimHH.yaml
/examples/NeuroML/PyNN/SimNet1.yaml
/examples/NeuroML/PyNN/SimOneCell.yaml
/examples/NeuroML/PyNN/SimSimpleNet.yaml
/examples/NeuroML/PyNN/SimpleNet.yaml
/examples/NeuroML/PyNN/SimInputWeights.yaml
/examples/TensorFlow/Keras/IRIS/keras_to_MDF
/examples/TensorFlow/Keras/MNIST/keras_to_MDF
/examples/TensorFlow/Keras/MNIST/keras_to_MDF.1
/examples/TensorFlow/Keras/IRIS/keras_to_MDF.1
6 changes: 6 additions & 0 deletions docs/sphinx/source/api/QuickStart.md

Large diffs are not rendered by default.

Binary file modified docs/sphinx/source/api/export_format/ONNX/ab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions docs/sphinx/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,14 @@ def setup(app):
"pytest": ("https://docs.pytest.org/en/stable", None),
}

from sphinx.ext.autodoc import ClassLevelDocumenter, InstanceAttributeDocumenter
from sphinx.ext.autodoc import ClassLevelDocumenter, AttributeDocumenter


def add_directive_header(self, sig):
ClassLevelDocumenter.add_directive_header(self, sig)


InstanceAttributeDocumenter.add_directive_header = add_directive_header
AttributeDocumenter.add_directive_header = add_directive_header


import os
Expand Down
2 changes: 1 addition & 1 deletion examples/ACT-R/addition.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"addition": {
"format": "ModECI MDF v0.4",
"generating_application": "Python modeci-mdf v0.4.7",
"generating_application": "Python modeci-mdf v0.4.8",
"graphs": {
"addition_graph": {
"nodes": {
Expand Down
2 changes: 1 addition & 1 deletion examples/ACT-R/addition.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
addition:
format: ModECI MDF v0.4
generating_application: Python modeci-mdf v0.4.7
generating_application: Python modeci-mdf v0.4.8
graphs:
addition_graph:
nodes:
Expand Down
2 changes: 1 addition & 1 deletion examples/ACT-R/count.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"count": {
"format": "ModECI MDF v0.4",
"generating_application": "Python modeci-mdf v0.4.7",
"generating_application": "Python modeci-mdf v0.4.8",
"graphs": {
"count_graph": {
"nodes": {
Expand Down
2 changes: 1 addition & 1 deletion examples/ACT-R/count.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
count:
format: ModECI MDF v0.4
generating_application: Python modeci-mdf v0.4.7
generating_application: Python modeci-mdf v0.4.8
graphs:
count_graph:
nodes:
Expand Down
2 changes: 1 addition & 1 deletion examples/MDF/ABCD.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"ABCD": {
"format": "ModECI MDF v0.4",
"generating_application": "Python modeci-mdf v0.4.7",
"generating_application": "Python modeci-mdf v0.4.8",
"graphs": {
"abcd_example": {
"nodes": {
Expand Down
2 changes: 1 addition & 1 deletion examples/MDF/ABCD.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ABCD:
format: ModECI MDF v0.4
generating_application: Python modeci-mdf v0.4.7
generating_application: Python modeci-mdf v0.4.8
graphs:
abcd_example:
nodes:
Expand Down
2 changes: 1 addition & 1 deletion examples/MDF/Arrays.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"Arrays": {
"format": "ModECI MDF v0.4",
"generating_application": "Python modeci-mdf v0.4.7",
"generating_application": "Python modeci-mdf v0.4.8",
"graphs": {
"array_example": {
"nodes": {
Expand Down
2 changes: 1 addition & 1 deletion examples/MDF/Arrays.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Arrays:
format: ModECI MDF v0.4
generating_application: Python modeci-mdf v0.4.7
generating_application: Python modeci-mdf v0.4.8
graphs:
array_example:
nodes:
Expand Down
2 changes: 1 addition & 1 deletion examples/MDF/ParametersFunctions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"ParametersFunctions": {
"format": "ModECI MDF v0.4",
"generating_application": "Python modeci-mdf v0.4.7",
"generating_application": "Python modeci-mdf v0.4.8",
"graphs": {
"params_funcs_example": {
"nodes": {
Expand Down
2 changes: 1 addition & 1 deletion examples/MDF/ParametersFunctions.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ParametersFunctions:
format: ModECI MDF v0.4
generating_application: Python modeci-mdf v0.4.7
generating_application: Python modeci-mdf v0.4.8
graphs:
params_funcs_example:
nodes:
Expand Down
2 changes: 1 addition & 1 deletion examples/MDF/RNN/IAF_net.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"IAF_net": {
"format": "ModECI MDF v0.4",
"generating_application": "Python modeci-mdf v0.4.7",
"generating_application": "Python modeci-mdf v0.4.8",
"graphs": {
"iaf_example": {
"nodes": {
Expand Down
2 changes: 1 addition & 1 deletion examples/MDF/RNN/IAF_net.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
IAF_net:
format: ModECI MDF v0.4
generating_application: Python modeci-mdf v0.4.7
generating_application: Python modeci-mdf v0.4.8
graphs:
iaf_example:
nodes:
Expand Down
2 changes: 1 addition & 1 deletion examples/MDF/RNN/IAF_net2.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"IAF_net2": {
"format": "ModECI MDF v0.4",
"generating_application": "Python modeci-mdf v0.4.7",
"generating_application": "Python modeci-mdf v0.4.8",
"graphs": {
"iaf_example": {
"nodes": {
Expand Down
2 changes: 1 addition & 1 deletion examples/MDF/RNN/IAF_net2.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
IAF_net2:
format: ModECI MDF v0.4
generating_application: Python modeci-mdf v0.4.7
generating_application: Python modeci-mdf v0.4.8
graphs:
iaf_example:
nodes:
Expand Down
2 changes: 1 addition & 1 deletion examples/MDF/RNN/IAFs.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"IAFs": {
"format": "ModECI MDF v0.4",
"generating_application": "Python modeci-mdf v0.4.7",
"generating_application": "Python modeci-mdf v0.4.8",
"graphs": {
"iaf_example": {
"nodes": {
Expand Down
2 changes: 1 addition & 1 deletion examples/MDF/RNN/IAFs.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
IAFs:
format: ModECI MDF v0.4
generating_application: Python modeci-mdf v0.4.7
generating_application: Python modeci-mdf v0.4.8
graphs:
iaf_example:
nodes:
Expand Down
2 changes: 1 addition & 1 deletion examples/MDF/RNN/RNNs.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"RNNs": {
"format": "ModECI MDF v0.4",
"generating_application": "Python modeci-mdf v0.4.7",
"generating_application": "Python modeci-mdf v0.4.8",
"graphs": {
"rnn_example": {
"nodes": {
Expand Down
2 changes: 1 addition & 1 deletion examples/MDF/RNN/RNNs.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
RNNs:
format: ModECI MDF v0.4
generating_application: Python modeci-mdf v0.4.7
generating_application: Python modeci-mdf v0.4.8
graphs:
rnn_example:
nodes:
Expand Down
Binary file modified examples/MDF/Simple.bson
Binary file not shown.
2 changes: 1 addition & 1 deletion examples/MDF/Simple.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"Simple": {
"format": "ModECI MDF v0.4",
"generating_application": "Python modeci-mdf v0.4.7",
"generating_application": "Python modeci-mdf v0.4.8",
"graphs": {
"simple_example": {
"nodes": {
Expand Down
2 changes: 1 addition & 1 deletion examples/MDF/Simple.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Simple:
format: ModECI MDF v0.4
generating_application: Python modeci-mdf v0.4.7
generating_application: Python modeci-mdf v0.4.8
graphs:
simple_example:
nodes:
Expand Down
2 changes: 1 addition & 1 deletion examples/MDF/States.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"States": {
"format": "ModECI MDF v0.4",
"generating_application": "Python modeci-mdf v0.4.7",
"generating_application": "Python modeci-mdf v0.4.8",
"graphs": {
"state_example": {
"nodes": {
Expand Down
2 changes: 1 addition & 1 deletion examples/MDF/States.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
States:
format: ModECI MDF v0.4
generating_application: Python modeci-mdf v0.4.7
generating_application: Python modeci-mdf v0.4.8
graphs:
state_example:
nodes:
Expand Down
2 changes: 1 addition & 1 deletion examples/MDF/abc_conditions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"abc_conditions": {
"format": "ModECI MDF v0.4",
"generating_application": "Python modeci-mdf v0.4.7",
"generating_application": "Python modeci-mdf v0.4.8",
"graphs": {
"abc_conditions_example": {
"nodes": {
Expand Down
2 changes: 1 addition & 1 deletion examples/MDF/abc_conditions.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
abc_conditions:
format: ModECI MDF v0.4
generating_application: Python modeci-mdf v0.4.7
generating_application: Python modeci-mdf v0.4.8
graphs:
abc_conditions_example:
nodes:
Expand Down
2 changes: 1 addition & 1 deletion examples/MDF/conditions/Composite_mdf_condition.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"Composite_mdf_condition": {
"format": "ModECI MDF v0.4",
"generating_application": "Python modeci-mdf v0.4.7",
"generating_application": "Python modeci-mdf v0.4.8",
"graphs": {
"Composite_mdf_condition_example": {
"nodes": {
Expand Down
2 changes: 1 addition & 1 deletion examples/MDF/conditions/Composite_mdf_condition.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Composite_mdf_condition:
format: ModECI MDF v0.4
generating_application: Python modeci-mdf v0.4.7
generating_application: Python modeci-mdf v0.4.8
graphs:
Composite_mdf_condition_example:
nodes:
Expand Down
2 changes: 1 addition & 1 deletion examples/MDF/conditions/everyncalls_condition.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"everyncalls_condition": {
"format": "ModECI MDF v0.4",
"generating_application": "Python modeci-mdf v0.4.7",
"generating_application": "Python modeci-mdf v0.4.8",
"graphs": {
"everyncalls_example": {
"nodes": {
Expand Down
2 changes: 1 addition & 1 deletion examples/MDF/conditions/everyncalls_condition.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
everyncalls_condition:
format: ModECI MDF v0.4
generating_application: Python modeci-mdf v0.4.7
generating_application: Python modeci-mdf v0.4.8
graphs:
everyncalls_example:
nodes:
Expand Down
2 changes: 1 addition & 1 deletion examples/MDF/conditions/threshold_condition.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"threshold_condition": {
"format": "ModECI MDF v0.4",
"generating_application": "Python modeci-mdf v0.4.7",
"generating_application": "Python modeci-mdf v0.4.8",
"graphs": {
"threshold_example": {
"nodes": {
Expand Down
2 changes: 1 addition & 1 deletion examples/MDF/conditions/threshold_condition.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
threshold_condition:
format: ModECI MDF v0.4
generating_application: Python modeci-mdf v0.4.7
generating_application: Python modeci-mdf v0.4.8
graphs:
threshold_example:
nodes:
Expand Down
Loading

0 comments on commit 2e9cd9c

Please sign in to comment.