Skip to content

Commit 912f431

Browse files
ivaylo-matovCopilotzeusongit
authored
DYN-9388 Make PythonNet3 default python engine as built-in package (#16644)
Co-authored-by: Copilot <[email protected]> Co-authored-by: Ashish Aggarwal <[email protected]>
1 parent 201df2f commit 912f431

File tree

107 files changed

+1472
-3965
lines changed

Some content is hidden

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

107 files changed

+1472
-3965
lines changed

.github/scripts/check_file_version.ps1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,12 @@ $excludedFiles = @(
6868
"TuneUp.dll",
6969
"TuneUp.resources.dll",
7070
"Units.dll",
71-
"Webview2Loader.dll"
71+
"Webview2Loader.dll",
72+
"DSPythonNet3.dll",
73+
"DSPythonNet3.resources.dll",
74+
"DSPythonNet3Extension.dll",
75+
"DSPythonNet3Empty.dll",
76+
"DSPythonNet3Wheels.dll"
7277
)
7378
$noVersion = @()
7479
$wrongVersion = @()

doc/distrib/Samples/en-US/Core/Core_Math.dyn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2015,7 +2015,7 @@
20152015
{
20162016
"ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels",
20172017
"Code": "import clr\r\nclr.AddReference('ProtoGeometry')\r\nfrom Autodesk.DesignScript.Geometry import *\r\n\r\nimport math\r\n\r\n# The inputs to this node will be stored as a list in the IN variable.\r\namp = IN[0] # single value\r\nx = IN[1] # list\r\ny = IN[2] # list (expect same length as x)\r\nc = IN[3] # single value\r\n\r\n# Declare an empty array of z-values\r\nz = []\r\n\r\n# Solve the equation for each x and y value\r\nfor index in range(len(x)):\r\n\tsum = math.pow(x[index],2) + math.pow(y[index],2) + math.pow(c,2)\r\n\tnum1 = math.sqrt(sum)\r\n\tnum2 = math.sin(num1)\r\n\tzVal = amp * num2 / num1\r\n\t\r\n\t# Append the answer to the list of z values\r\n\tz.append(zVal)\r\n\r\n# Assign the z-values to the OUT variable\r\nOUT = z",
2018-
"Engine": "CPython3",
2018+
"Engine": "PythonNet3",
20192019
"VariableInputPorts": true,
20202020
"Id": "7024be7096c74f46a832ce5749bba59a",
20212021
"NodeType": "PythonScriptNode",

0 commit comments

Comments
 (0)