Skip to content

Commit

Permalink
Merge pull request #461 from ModECI/development
Browse files Browse the repository at this point in the history
Updates to NeuroML examples; regenerated images; to v0.4.6
  • Loading branch information
pgleeson authored May 31, 2023
2 parents c61fc54 + 82770ce commit f5ee2dc
Show file tree
Hide file tree
Showing 159 changed files with 2,438 additions and 678 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,19 @@ jobs:
python -m pytest -m coremdf tests/
- name: Install optional dependencies
run: python -m pip install .[all]
run: |
python -m pip install .[all]
- name: Version info for optional installed packages
run: |
pip list
- name: Install graphviz
if: ${{ matrix.runs-on != 'windows-latest' }}
run: |
if [[ ${{ matrix.runs-on }} == *"macos"* ]]; then brew install graphviz ; fi
if [[ ${{ matrix.runs-on }} == *"ubuntu"* ]]; then sudo apt install graphviz ; fi
- name: Test interface ACT-R
if: ${{ matrix.python-version != '3.10' || matrix.runs-on != 'windows-latest' }}
run: |
Expand All @@ -88,8 +95,6 @@ jobs:
- name: Test interface TensorFlow linux/mac
if: ${{ matrix.runs-on != 'windows-latest' }}
run: |
if [[ ${{ matrix.runs-on }} == *"macos"* ]]; then brew install graphviz ; fi
if [[ ${{ matrix.runs-on }} == *"ubuntu"* ]]; then sudo apt install graphviz ; fi
dot -V
python -m pytest -v -m "tensorflow" tests/
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -276,3 +276,5 @@ Thumbs.db #thumbnail cache on Windows
/examples/MDF/NLP/TestNLP
/examples/MDF/conditions/composite_example
/examples/NeuroML/arm64
/examples/MDF/RNN/iaf.net
/examples/MDF/RNN/iaf.net2
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/sphinx/source/api/export_format/MDF/images/abcd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/sphinx/source/api/export_format/MDF/images/abcd_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/sphinx/source/api/export_format/MDF/images/arrays.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/sphinx/source/api/export_format/MDF/images/params_funcs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/sphinx/source/api/export_format/MDF/images/simple.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/sphinx/source/api/export_format/MDF/images/simple_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/sphinx/source/api/export_format/MDF/images/states.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/sphinx/source/api/export_format/NeuroML/ABCD.1.mdf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/sphinx/source/api/export_format/NeuroML/ABCD.mdf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/sphinx/source/api/export_format/NeuroML/ABCD.nmllite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/sphinx/source/api/export_format/NeuroML/FN.gv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/sphinx/source/api/export_format/NeuroML/FNmulti.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/sphinx/source/api/export_format/NeuroML/Izh.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.
Binary file modified docs/sphinx/source/api/export_format/NeuroML/LEMS_SimABCD.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/sphinx/source/api/export_format/NeuroML/LEMS_SimFN.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.
Binary file modified docs/sphinx/source/api/export_format/NeuroML/MDFFNrun.multi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.
5 changes: 4 additions & 1 deletion docs/sphinx/source/api/export_format/ONNX/simple_ab.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import torch
import onnx
import sys
import os


from modeci_mdf.interfaces.onnx import onnx_to_mdf
Expand Down Expand Up @@ -80,7 +81,9 @@ def main():
view_on_render=False,
level=3,
filename_root="ab",
only_warn_on_fail=True, # Makes sure test of this doesn't fail on Windows on GitHub Actions
only_warn_on_fail=(
os.name == "nt"
), # Makes sure test of this doesn't fail on Windows on GitHub Actions
)
if "-run" in sys.argv:
verbose = True
Expand Down
5 changes: 4 additions & 1 deletion docs/sphinx/source/api/export_format/ONNX/simple_abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"""
import torch
import onnx
import os


from modeci_mdf.interfaces.onnx import onnx_to_mdf
Expand Down Expand Up @@ -82,7 +83,9 @@ def main():
view_on_render=False,
level=3,
filename_root="abc",
only_warn_on_fail=True, # Makes sure test of this doesn't fail on Windows on GitHub Actions
only_warn_on_fail=(
os.name == "nt"
), # Makes sure test of this doesn't fail on Windows on GitHub Actions
)


Expand Down
Binary file modified docs/sphinx/source/api/export_format/PyTorch/inception.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/sphinx/source/api/export_format/PyTorch/mlp_pure_mdf.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.
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.
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.5",
"generating_application": "Python modeci-mdf v0.4.6",
"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.5
generating_application: Python modeci-mdf v0.4.6
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.5",
"generating_application": "Python modeci-mdf v0.4.6",
"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.5
generating_application: Python modeci-mdf v0.4.6
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.5",
"generating_application": "Python modeci-mdf v0.4.6",
"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.5
generating_application: Python modeci-mdf v0.4.6
graphs:
abcd_example:
nodes:
Expand Down
9 changes: 7 additions & 2 deletions 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.5",
"generating_application": "Python modeci-mdf v0.4.6",
"graphs": {
"array_example": {
"nodes": {
Expand All @@ -28,7 +28,12 @@
},
"middle_node": {
"input_ports": {
"input_port1": {}
"input_port1": {
"shape": [
2,
2
]
}
},
"parameters": {
"slope": {
Expand Down
7 changes: 5 additions & 2 deletions 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.5
generating_application: Python modeci-mdf v0.4.6
graphs:
array_example:
nodes:
Expand All @@ -17,7 +17,10 @@ Arrays:
value: input_level
middle_node:
input_ports:
input_port1: {}
input_port1:
shape:
- 2
- 2
parameters:
slope:
value: 0.5
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.5",
"generating_application": "Python modeci-mdf v0.4.6",
"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.5
generating_application: Python modeci-mdf v0.4.6
graphs:
params_funcs_example:
nodes:
Expand Down
Loading

0 comments on commit f5ee2dc

Please sign in to comment.