Skip to content

Commit c63e666

Browse files
authored
Merge pull request #544 from ModECI/development
Update cyc graphs
2 parents 4fd279a + 5f442aa commit c63e666

Some content is hidden

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

61 files changed

+1060
-86
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,13 @@ jobs:
5858
brew install hdf5
5959
6060
- name: Install core package
61-
run: python -m pip install .[dev]
61+
run: |
62+
pip install 'numpy<2.0.0' # due to lingering issues with other modules & numpy v2...
63+
python -m pip install .[dev]
6264
6365
- name: Version info for installed packages
6466
run: |
65-
pip list
67+
pip list
6668
6769
- name: Test core package
6870
run: |
@@ -102,7 +104,6 @@ jobs:
102104
python -m pytest -v -m "tensorflow" tests/
103105
104106
- name: Test interface PsyNeuLink
105-
if: ${{ matrix.python-version != '3.11'}}
106107
run: |
107108
python -m pip install .[psyneulink]
108109
python -m pytest -v -m "psyneulink" tests/

.github/workflows/ci_test_all.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: CI Test script
2+
3+
on:
4+
push:
5+
branches: [ main, development, experimental, test*, nml* ]
6+
pull_request:
7+
branches: [ main, development, experimental, test*, nml* ]
8+
9+
jobs:
10+
11+
checks:
12+
name: Check Python ${{ matrix.python-version }} on ${{ matrix.runs-on }}
13+
runs-on: ${{ matrix.runs-on }}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
python-version: [ "3.10"]
18+
runs-on: [ubuntu-latest]
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- uses: actions/setup-python@v5
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
27+
- name: Install HDF5 for pytables on macos-14/latest
28+
if: ${{ matrix.runs-on == 'macos-latest' }}
29+
run: |
30+
brew install hdf5
31+
32+
- name: Install graphviz
33+
uses: ts-graphviz/setup-graphviz@v2
34+
with:
35+
# Skip to run brew update command on macOS.
36+
macos-skip-brew-update: 'true' # default false
37+
38+
- name: Run test script
39+
run: |
40+
export NEURON_HOME=$pythonLocation
41+
./test_all.sh
42+
43+
- name: Version info for installed packages
44+
run: |
45+
pip list
46+
47+
48+
49+
50+
- name: Final version info for optional installed packages
51+
run: |
52+
pip list

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,3 +314,5 @@ examples/TensorFlow/Keras/keras_to_MDF
314314
/examples/TensorFlow/Keras/IRIS/keras_model_on_iris.keras
315315
/examples/TensorFlow/Keras/MNIST/kr_N_model.keras
316316
/checkoutpngs.sh
317+
/docs/sphinx/source/api/export_format/MDF/images/newton.png
318+
/docs/sphinx/source/api/export_format/MDF/images/newton_plot.png

docs/sphinx/source/api/export_format/MDF/MDF.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Examples of [Python](https://python.org), [JSON](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/JSON#:~:text=JavaScript%20Object%20Notation%20(JSON)%20is,page%2C%20or%20vice%20versa) and [YAML](https://circleci.com/blog/what-is-yaml-a-beginner-s-guide/) files to illustrate the structure and usage of MDF.
44

5-
<a href="#simple"> Simple </a>| <a href="#abcd"> ABCD </a> | <a href="#arrays"> Arrays </a> | <a href="#st"> States </a> | <a href="#conditions"> Conditions </a> | <a href="#parameters-and-functions"> Parameters and Functions </a>
5+
<a href="#simple"> Simple </a>| <a href="#abcd"> ABCD </a> | <a href="#arrays"> Arrays </a> | <a href="#st"> States </a> | <a href="#conditions"> Conditions </a> | <a href="#parameters-and-functions"> Parameters and Functions </a>| <a href="#newton"> Newton's Law of Cooling</a>
66

77
<p id="simple"></p>
88

@@ -73,6 +73,16 @@ A simple 3 [Nodes](https://mdf.readthedocs.io/en/latest/api/Specification.html#n
7373
A simple [Node](https://mdf.readthedocs.io/en/latest/api/Specification.html#node) with a number of different types of [Parameters](https://mdf.readthedocs.io/en/latest/api/Specification.html#parameter) (in blue; fixed and **stateful**) and [Functions](https://mdf.readthedocs.io/en/latest/api/Specification.html#function) (in purple; can be built in or ONNX based).
7474

7575
<img src="https://raw.githubusercontent.com/ModECI/MDF/main/examples/MDF/images/params_funcs.png" width="250" height="198" />
76+
<p id="newton"></p>
77+
78+
## Newton's Law of Cooling
79+
80+
[Python Source](https://github.com/ModECI/MDF/blob/main/examples/MDF/newton.py) | [JSON](https://github.com/ModECI/MDF/blob/main/examples/MDF/NewtonCoolingModel.json) | [YAML](https://github.com/ModECI/MDF/blob/main/examples/MDF/NewtonCoolingModel.yaml)
81+
82+
A simple [Newtonian cooling process](https://en.wikipedia.org/wiki/Newton%27s_law_of_cooling) model that demonstrates the use of time derivative simulating the cooling of an object to the ambient temperature over time.
83+
84+
<img src="https://raw.githubusercontent.com/ModECI/MDF/development/examples/MDF/images/newton.png" width="250"/>
85+
<img src="https://raw.githubusercontent.com/ModECI/MDF/development/examples/MDF/images/newton_plot.png" width="250"/>
7686

7787

7888
## More examples
-110 Bytes
Loading
27 KB
Loading
45.7 KB
Loading
-8 Bytes
Loading
-496 Bytes
Loading
1019 Bytes
Loading

0 commit comments

Comments
 (0)