Skip to content

Commit

Permalink
Merge pull request #165 from ModECI/to_031
Browse files Browse the repository at this point in the history
Move to v0.3.1 of package
  • Loading branch information
pgleeson authored Oct 18, 2021
2 parents 452b77e + e8ed0ef commit d4ca950
Show file tree
Hide file tree
Showing 37 changed files with 86 additions and 88 deletions.
14 changes: 7 additions & 7 deletions docs/MDF_function_specifications.json
Original file line number Diff line number Diff line change
Expand Up @@ -1327,7 +1327,7 @@
"pattern",
"curr_goal"
],
"expression_string": "actr_functions.change_goal(pattern, curr_goal)"
"expression_string": "actr.change_goal(pattern, curr_goal)"
},
"retrieve_chunk": {
"description": "ACT-R retrieve chunk function",
Expand All @@ -1336,7 +1336,7 @@
"dm_chunks",
"types"
],
"expression_string": "actr_functions.retrieve_chunk(pattern, dm_chunks, types)"
"expression_string": "actr.retrieve_chunk(pattern, dm_chunks, types)"
},
"pattern_matching_function": {
"description": "ACT-R pattern matching function",
Expand All @@ -1345,34 +1345,34 @@
"goal",
"retrieval"
],
"expression_string": "actr_functions.pattern_matching_function(productions, goal, retrieval)"
"expression_string": "actr.pattern_matching_function(productions, goal, retrieval)"
},
"conflict_resolution_function": {
"description": "ACT-R conflict resolution function",
"arguments": [
"productions"
],
"expression_string": "actr_functions.conflict_resolution_function(productions)"
"expression_string": "actr.conflict_resolution_function(productions)"
},
"update_goal": {
"description": "ACT-R update goal buffer function",
"arguments": [
"production"
],
"expression_string": "actr_functions.update_goal(production)"
"expression_string": "actr.update_goal(production)"
},
"update_retrieval": {
"description": "ACT-R update retrieval buffer function",
"arguments": [
"production"
],
"expression_string": "actr_functions.update_retrieval(production)"
"expression_string": "actr.update_retrieval(production)"
},
"check_termination": {
"description": "check_termination",
"arguments": [
"production"
],
"expression_string": "actr_functions.check_termination(production)"
"expression_string": "actr.check_termination(production)"
}
}
3 changes: 1 addition & 2 deletions docs/MDF_function_specifications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3258,8 +3258,7 @@ pattern_matching_function:
- productions
- goal
- retrieval
expression_string: actr.pattern_matching_function(productions, goal,
retrieval)
expression_string: actr.pattern_matching_function(productions, goal, retrieval)
conflict_resolution_function:
description: ACT-R conflict resolution function
arguments:
Expand Down
2 changes: 1 addition & 1 deletion docs/MDF_specification.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "ModECI MDF v0.2",
"version": "ModECI MDF v0.3",
"comment": "**Note: the ModECI MDF specification is still in development! Subject to change without (much) notice. See [here](https://github.com/ModECI/MDF/issues?q=is%3Aissue+is%3Aopen+label%3Aspecification) for ongoing discussions.**",
"specification": {
"Model": {
Expand Down
2 changes: 1 addition & 1 deletion docs/MDF_specification.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: ModECI MDF v0.2
version: ModECI MDF v0.3
comment: '**Note: the ModECI MDF specification is still in development! Subject to
change without (much) notice. See [here](https://github.com/ModECI/MDF/issues?q=is%3Aissue+is%3Aopen+label%3Aspecification)
for ongoing discussions.**'
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Specification of ModECI v0.2
# Specification of ModECI v0.3
**Note: the ModECI MDF specification is still in development! Subject to change without (much) notice. See [here](https://github.com/ModECI/MDF/issues?q=is%3Aissue+is%3Aopen+label%3Aspecification) for ongoing discussions.**
## Model
The top level Model containing <a href="#graph">Graph</a>s consisting of <a href="#node">Node</a>s connected via <a href="#edge">Edge</a>s.
Expand Down
30 changes: 15 additions & 15 deletions docs/sphinx/source/api/MDF_function_specifications.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Specification of standard functions in ModECI v0.2
# Specification of standard functions in ModECI v0.3
**Note: the ModECI MDF specification is still in development! Subject to change without (much) notice. See [here](https://github.com/ModECI/MDF/issues?q=is%3Aissue+is%3Aopen+label%3Aspecification) for ongoing discussions.**
These functions are defined in https://github.com/ModECI/MDF/blob/main/src/modeci_mdf/standard_functions.py
## All functions:
Expand Down Expand Up @@ -2973,35 +2973,35 @@ This operator has **optional** inputs/outputs. See [the doc](IR.md) for more det

## change_goal
<p><i>ACT-R change goal buffer function</i></p>
<p><b>change_goal(pattern, curr_goal)</b> = actr_functions.change_goal(pattern, curr_goal)</p>
<p>Python version: actr_functions.change_goal(pattern, curr_goal)</p>
<p><b>change_goal(pattern, curr_goal)</b> = actr.change_goal(pattern, curr_goal)</p>
<p>Python version: actr.change_goal(pattern, curr_goal)</p>

## retrieve_chunk
<p><i>ACT-R retrieve chunk function</i></p>
<p><b>retrieve_chunk(pattern, dm_chunks, types)</b> = actr_functions.retrieve_chunk(pattern, dm_chunks, types)</p>
<p>Python version: actr_functions.retrieve_chunk(pattern, dm_chunks, types)</p>
<p><b>retrieve_chunk(pattern, dm_chunks, types)</b> = actr.retrieve_chunk(pattern, dm_chunks, types)</p>
<p>Python version: actr.retrieve_chunk(pattern, dm_chunks, types)</p>

## pattern_matching_function
<p><i>ACT-R pattern matching function</i></p>
<p><b>pattern_matching_function(productions, goal, retrieval)</b> = actr_functions.pattern_matching_function(productions, goal, retrieval)</p>
<p>Python version: actr_functions.pattern_matching_function(productions, goal, retrieval)</p>
<p><b>pattern_matching_function(productions, goal, retrieval)</b> = actr.pattern_matching_function(productions, goal, retrieval)</p>
<p>Python version: actr.pattern_matching_function(productions, goal, retrieval)</p>

## conflict_resolution_function
<p><i>ACT-R conflict resolution function</i></p>
<p><b>conflict_resolution_function(productions)</b> = actr_functions.conflict_resolution_function(productions)</p>
<p>Python version: actr_functions.conflict_resolution_function(productions)</p>
<p><b>conflict_resolution_function(productions)</b> = actr.conflict_resolution_function(productions)</p>
<p>Python version: actr.conflict_resolution_function(productions)</p>

## update_goal
<p><i>ACT-R update goal buffer function</i></p>
<p><b>update_goal(production)</b> = actr_functions.update_goal(production)</p>
<p>Python version: actr_functions.update_goal(production)</p>
<p><b>update_goal(production)</b> = actr.update_goal(production)</p>
<p>Python version: actr.update_goal(production)</p>

## update_retrieval
<p><i>ACT-R update retrieval buffer function</i></p>
<p><b>update_retrieval(production)</b> = actr_functions.update_retrieval(production)</p>
<p>Python version: actr_functions.update_retrieval(production)</p>
<p><b>update_retrieval(production)</b> = actr.update_retrieval(production)</p>
<p>Python version: actr.update_retrieval(production)</p>

## check_termination
<p><i>check_termination</i></p>
<p><b>check_termination(production)</b> = actr_functions.check_termination(production)</p>
<p>Python version: actr_functions.check_termination(production)</p>
<p><b>check_termination(production)</b> = actr.check_termination(production)</p>
<p>Python version: actr.check_termination(production)</p>
2 changes: 1 addition & 1 deletion docs/sphinx/source/api/Specification.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Specification of ModECI v0.2
# Specification of ModECI v0.3
**Note: the ModECI MDF specification is still in development! Subject to change without (much) notice. See [here](https://github.com/ModECI/MDF/issues?q=is%3Aissue+is%3Aopen+label%3Aspecification) for ongoing discussions.**
## Model
The top level Model containing <a href="#graph">Graph</a>s consisting of <a href="#node">Node</a>s connected via <a href="#edge">Edge</a>s.
Expand Down
4 changes: 2 additions & 2 deletions examples/ACT-R/addition.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"addition": {
"format": "ModECI MDF v0.2",
"generating_application": "Python modeci-mdf v0.2.1",
"format": "ModECI MDF v0.3",
"generating_application": "Python modeci-mdf v0.3.1",
"graphs": {
"addition_graph": {
"conditions": {
Expand Down
4 changes: 2 additions & 2 deletions examples/ACT-R/addition.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
addition:
format: ModECI MDF v0.2
generating_application: Python modeci-mdf v0.2.1
format: ModECI MDF v0.3
generating_application: Python modeci-mdf v0.3.1
graphs:
addition_graph:
conditions:
Expand Down
4 changes: 2 additions & 2 deletions examples/ACT-R/count.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"count": {
"format": "ModECI MDF v0.2",
"generating_application": "Python modeci-mdf v0.2.1",
"format": "ModECI MDF v0.3",
"generating_application": "Python modeci-mdf v0.3.1",
"graphs": {
"count_graph": {
"conditions": {
Expand Down
4 changes: 2 additions & 2 deletions examples/ACT-R/count.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
count:
format: ModECI MDF v0.2
generating_application: Python modeci-mdf v0.2.1
format: ModECI MDF v0.3
generating_application: Python modeci-mdf v0.3.1
graphs:
count_graph:
conditions:
Expand Down
4 changes: 2 additions & 2 deletions examples/MDF/ABCD.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"ABCD": {
"format": "ModECI MDF v0.2",
"generating_application": "Python modeci-mdf v0.2.1",
"format": "ModECI MDF v0.3",
"generating_application": "Python modeci-mdf v0.3.1",
"graphs": {
"abcd_example": {
"nodes": {
Expand Down
4 changes: 2 additions & 2 deletions examples/MDF/ABCD.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ABCD:
format: ModECI MDF v0.2
generating_application: Python modeci-mdf v0.2.1
format: ModECI MDF v0.3
generating_application: Python modeci-mdf v0.3.1
graphs:
abcd_example:
nodes:
Expand Down
4 changes: 2 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.2",
"generating_application": "Python modeci-mdf v0.2.1",
"format": "ModECI MDF v0.3",
"generating_application": "Python modeci-mdf v0.3.1",
"graphs": {
"array_example": {
"nodes": {
Expand Down
4 changes: 2 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.2
generating_application: Python modeci-mdf v0.2.1
format: ModECI MDF v0.3
generating_application: Python modeci-mdf v0.3.1
graphs:
array_example:
nodes:
Expand Down
4 changes: 2 additions & 2 deletions examples/MDF/Simple.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"Simple": {
"format": "ModECI MDF v0.2",
"generating_application": "Python modeci-mdf v0.2.1",
"format": "ModECI MDF v0.3",
"generating_application": "Python modeci-mdf v0.3.1",
"graphs": {
"simple_example": {
"nodes": {
Expand Down
4 changes: 2 additions & 2 deletions examples/MDF/Simple.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Simple:
format: ModECI MDF v0.2
generating_application: Python modeci-mdf v0.2.1
format: ModECI MDF v0.3
generating_application: Python modeci-mdf v0.3.1
graphs:
simple_example:
nodes:
Expand Down
4 changes: 2 additions & 2 deletions examples/MDF/States.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"States": {
"format": "ModECI MDF v0.2",
"generating_application": "Python modeci-mdf v0.2.1",
"format": "ModECI MDF v0.3",
"generating_application": "Python modeci-mdf v0.3.1",
"graphs": {
"state_example": {
"nodes": {
Expand Down
4 changes: 2 additions & 2 deletions examples/MDF/States.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
States:
format: ModECI MDF v0.2
generating_application: Python modeci-mdf v0.2.1
format: ModECI MDF v0.3
generating_application: Python modeci-mdf v0.3.1
graphs:
state_example:
nodes:
Expand Down
4 changes: 2 additions & 2 deletions 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.2",
"generating_application": "Python modeci-mdf v0.2.1",
"format": "ModECI MDF v0.3",
"generating_application": "Python modeci-mdf v0.3.1",
"graphs": {
"abc_conditions_example": {
"conditions": {
Expand Down
4 changes: 2 additions & 2 deletions 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.2
generating_application: Python modeci-mdf v0.2.1
format: ModECI MDF v0.3
generating_application: Python modeci-mdf v0.3.1
graphs:
abc_conditions_example:
conditions:
Expand Down
2 changes: 1 addition & 1 deletion examples/NeuroML/ABCD.mdf.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"ABCD": {
"format": "ModECI MDF v0.2",
"format": "ModECI MDF v0.3",
"graphs": {
"ABCD": {
"notes": "Example of a simplified network",
Expand Down
2 changes: 1 addition & 1 deletion examples/NeuroML/ABCD.mdf.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ABCD:
format: ModECI MDF v0.2
format: ModECI MDF v0.3
graphs:
ABCD:
notes: Example of a simplified network
Expand Down
2 changes: 1 addition & 1 deletion examples/NeuroML/FN.mdf.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"FN": {
"format": "ModECI MDF v0.2",
"format": "ModECI MDF v0.3",
"graphs": {
"FN": {
"notes": "FitzHugh Nagumo cell model - originally specified in NeuroML/LEMS",
Expand Down
2 changes: 1 addition & 1 deletion examples/NeuroML/FN.mdf.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FN:
format: ModECI MDF v0.2
format: ModECI MDF v0.3
graphs:
FN:
notes: FitzHugh Nagumo cell model - originally specified in NeuroML/LEMS
Expand Down
4 changes: 2 additions & 2 deletions examples/NeuroML/regenerateAndTest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pynml LEMS_SimABCD.xml -nogui
python ABCD.py -mdf

#### Generate graph from MDF version
python -m modeci_mdf.interfaces.graphviz.importer ABCD.mdf.yaml 1 -noview
python -m modeci_mdf.interfaces.graphviz.exporter ABCD.mdf.yaml 1 -noview

#### Test evaluating MDF version
python -m modeci_mdf.execution_engine ABCD.mdf.json
Expand All @@ -53,7 +53,7 @@ pynml LEMS_SimFN.xml -lems-graph
python FN.py -mdf

#### Generate graph from MDF version
python -m modeci_mdf.interfaces.graphviz.importer FN.mdf.yaml 3 -noview
python -m modeci_mdf.interfaces.graphviz.exporter FN.mdf.yaml 3 -noview

#### Test evaluating MDF version
python -m modeci_mdf.execution_engine FN.mdf.json
Expand Down
4 changes: 2 additions & 2 deletions examples/ONNX/ab.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"ONNX Model": {
"format": "ModECI MDF v0.2",
"generating_application": "Python modeci-mdf v0.2.1",
"format": "ModECI MDF v0.3",
"generating_application": "Python modeci-mdf v0.3.1",
"graphs": {
"torch-jit-export": {
"nodes": {
Expand Down
Binary file modified examples/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.
4 changes: 2 additions & 2 deletions examples/ONNX/ab.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ONNX Model:
format: ModECI MDF v0.2
generating_application: Python modeci-mdf v0.2.1
format: ModECI MDF v0.3
generating_application: Python modeci-mdf v0.3.1
graphs:
torch-jit-export:
nodes:
Expand Down
4 changes: 2 additions & 2 deletions examples/ONNX/abc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"ONNX Model": {
"format": "ModECI MDF v0.2",
"generating_application": "Python modeci-mdf v0.2.1",
"format": "ModECI MDF v0.3",
"generating_application": "Python modeci-mdf v0.3.1",
"graphs": {
"torch-jit-export": {
"nodes": {
Expand Down
Binary file modified examples/ONNX/abc.png
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 examples/ONNX/abc.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ONNX Model:
format: ModECI MDF v0.2
generating_application: Python modeci-mdf v0.2.1
format: ModECI MDF v0.3
generating_application: Python modeci-mdf v0.3.1
graphs:
torch-jit-export:
nodes:
Expand Down
4 changes: 2 additions & 2 deletions examples/ONNX/abcd.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"ONNX Model": {
"format": "ModECI MDF v0.2",
"generating_application": "Python modeci-mdf v0.2.1",
"format": "ModECI MDF v0.3",
"generating_application": "Python modeci-mdf v0.3.1",
"graphs": {
"torch-jit-export": {
"nodes": {
Expand Down
4 changes: 2 additions & 2 deletions examples/ONNX/abcd.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ONNX Model:
format: ModECI MDF v0.2
generating_application: Python modeci-mdf v0.2.1
format: ModECI MDF v0.3
generating_application: Python modeci-mdf v0.3.1
graphs:
torch-jit-export:
nodes:
Expand Down
2 changes: 1 addition & 1 deletion src/modeci_mdf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"""

# Version of the specification for MDF
MODECI_MDF_VERSION = "0.2"
MODECI_MDF_VERSION = "0.3"

# Version of the python module. Use MDF version here and just change minor version
__version__ = "%s.1" % MODECI_MDF_VERSION
Loading

0 comments on commit d4ca950

Please sign in to comment.