Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove const in example
- Avoids error
- Add Icon
  • Loading branch information
benjamsy committed Mar 9, 2023
commit 2f8e8270777853131690d188790f72fa589f5e30
7 changes: 5 additions & 2 deletions Examples/package.mo
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
within OMCallPythonAdvanced;
package Examples

package Examples
extends Modelica.Icons.ExamplesPackage;
import OMCallPythonAdvanced.Py;

model Test
extends Modelica.Icons.Example;
Py.PythonHandle pyHandle = Py.PythonHandle() "Initialize Python";
constant String pyProgram =
String pyProgram =
"def multiply(x, y):
print(\"Will compute\", x, \"times\", y)
print('Time: " + String(time) + "')
return x * y
";
parameter String pyModuleName = "__main__";
Expand Down