From ba504de6c277a8a130c666cf17079f3b812d99e8 Mon Sep 17 00:00:00 2001 From: "GMP-AD\\adieckmann" Date: Fri, 24 Nov 2023 15:05:53 +0100 Subject: [PATCH] #343 #347 last commit introduced an error when replacing multiple indices with a single string --- nodes/2.x/List.ReplaceItemAtIndex+.dyf | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/nodes/2.x/List.ReplaceItemAtIndex+.dyf b/nodes/2.x/List.ReplaceItemAtIndex+.dyf index f6a97b5b..f875a1be 100644 --- a/nodes/2.x/List.ReplaceItemAtIndex+.dyf +++ b/nodes/2.x/List.ReplaceItemAtIndex+.dyf @@ -18,7 +18,8 @@ { "ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels", "NodeType": "PythonScriptNode", - "Code": "_list = IN[0]\r\nrValues = IN[1]\r\niValues = IN[2]\r\nif isinstance(iValues, list):\r\n\tif not isinstance(rValues, list): rValues = rValues * len(iValues)\r\n\tfor (index, value) in zip(iValues, rValues):\r\n\t\t_list[index] = value\r\nelse: _list[iValues] = rValues\r\nOUT = _list", + "Code": "_list = IN[0]\r\nrValues = IN[1]\r\niValues = IN[2]\r\nif isinstance(iValues, list):\r\n\tif not isinstance(rValues, list): rValues = [rValues] * len(iValues)\r\n\tfor (index, value) in zip(iValues, rValues):\r\n\t\t_list[index] = value\r\nelse: _list[iValues] = rValues\r\nOUT = _list", + "Engine": "IronPython2", "VariableInputPorts": true, "Id": "c05d5d62b15545d09719af88c1b2148e", "Inputs": [ @@ -62,7 +63,7 @@ } ], "Replication": "Disabled", - "Description": "Führt ein eingebettetes IronPython-Skript aus." + "Description": "Führt ein eingebettetes Python-Skript aus." }, { "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Symbol, DynamoCore", @@ -188,13 +189,14 @@ ], "Dependencies": [], "NodeLibraryDependencies": [], + "Author": "None provided", "Bindings": [], "View": { "Dynamo": { "ScaleFactor": 1.0, "HasRunWithoutCrash": false, "IsVisibleInDynamoLibrary": true, - "Version": "2.6.2.15705", + "Version": "2.12.1.8246", "RunType": "Manual", "RunPeriod": "1000" },