You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,7 @@ For guidelines on contributing to the development of MDF, see [here](https://git
86
86
## Examples
87
87
88
88
To get started, follow the simple example in a Jupyter notebook [here](https://github.com/ModECI/MDF/blob/main/examples/SimpleExample.ipynb)
89
-
89
+
90
90
91
91
Multiple examples of serialized MDF files, the Python scripts used to generate them, as well as mappings to target environments can be found [here](https://github.com/ModECI/MDF/blob/main/examples/README.md).
"description": "Value to set at this input port if no edge connected to it."
112
112
},
113
113
"shape": {
@@ -119,7 +119,7 @@
119
119
"description": "The data type of the input received at a port."
120
120
},
121
121
"reduce": {
122
-
"type": "Union[str, NoneType]",
122
+
"type": "Optional",
123
123
"description": "Specifies how to deal with multiple inputs to one port during a single timestep: add: add up all the values; multiply: multiply the values, overwrite: just use the last value supplied (default)"
<td><i>Value to set at this input port if no edge connected to it.</i></td>
186
186
</tr>
187
187
@@ -203,7 +203,7 @@ The <a href="#inputport">InputPort</a> is an attribute of a Node which allows ex
203
203
204
204
<tr>
205
205
<td><b>reduce</b></td>
206
-
<td>Union[str, NoneType]</td>
206
+
<td>Optional</td>
207
207
<td><i>Specifies how to deal with multiple inputs to one port during a single timestep: add: add up all the values; multiply: multiply the values, overwrite: just use the last value supplied (default)</i></td>
**metadata** Optional Optional metadata field, an arbitrary dictionary of string keys and JSON serializable values.
94
+
**id** str The unique (for this Node) id of the input port,
95
+
**default_value** Union Value to set at this input port if no edge connected to it.
96
+
**shape** Optional The shape of the input port. This uses the same syntax as numpy ndarray shapes
97
+
(e.g., **numpy.zeros(shape)** would produce an array with the correct shape
98
+
**type** Optional The data type of the input received at a port.
99
+
**reduce** Optional Specifies how to deal with multiple inputs to one port during a single timestep: add: add up all the values; multiply: multiply the values, overwrite: just use the last value supplied (default)
0 commit comments