Skip to content

Commit 2f8e827

Browse files
committed
Remove const in example
- Avoids error - Add Icon
1 parent ec1cffe commit 2f8e827

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎Examples/package.mo‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
within OMCallPythonAdvanced;
2-
package Examples
32

3+
package Examples
4+
extends Modelica.Icons.ExamplesPackage;
45
import OMCallPythonAdvanced.Py;
56

67
model Test
8+
extends Modelica.Icons.Example;
79
Py.PythonHandle pyHandle = Py.PythonHandle() "Initialize Python";
8-
constant String pyProgram =
10+
String pyProgram =
911
"def multiply(x, y):
1012
print(\"Will compute\", x, \"times\", y)
13+
print('Time: " + String(time) + "')
1114
return x * y
1215
";
1316
parameter String pyModuleName = "__main__";

0 commit comments

Comments
 (0)