Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
andydandy74 committed Oct 10, 2024
1 parent 2afcce4 commit 85d4ceb
Show file tree
Hide file tree
Showing 5 changed files with 449 additions and 546 deletions.
82 changes: 43 additions & 39 deletions nodes/3.x/List.GroupListOfListsByKey.dyf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"Name": "Boolean",
"Type": "boolean",
"Value": "false",
"Description": "Selection between a true and false."
"Description": "Auswahl zwischen True und False",
"SelectedIndex": 0
}
],
"Outputs": [],
Expand All @@ -27,6 +28,7 @@
"ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels",
"NodeType": "PythonScriptNode",
"Code": "import clr\r\nfrom itertools import groupby\r\n\r\nitems = IN[0]\r\ngroupindex = int(IN[1])\r\nlistlist = list()\r\n\r\nfor key, group in groupby(items, lambda x: x[groupindex]):\r\n\telementlist = list()\r\n\tfor thing in group:\r\n\t\telementlist.append(thing)\r\n\tlistlist.append(elementlist)\r\nOUT = listlist",
"Engine": "CPython3",
"VariableInputPorts": true,
"Id": "7c37dc8d975c4592b41dbd279b9642dc",
"Inputs": [
Expand Down Expand Up @@ -61,7 +63,7 @@
}
],
"Replication": "Disabled",
"Description": "Runs an embedded IronPython script."
"Description": "Führt ein eingebettetes Python-Skript aus."
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Symbol, DynamoCore",
Expand All @@ -87,7 +89,7 @@
}
],
"Replication": "Disabled",
"Description": "A function parameter, use with custom nodes.\r\n\r\nYou can specify the type and default value for parameter. E.g.,\r\n\r\ninput : var[]..[]\r\nvalue : bool = false"
"Description": "Ein Funktionsparameter zur Verwendung mit benutzerdefinierten Blöcken.\r\n\r\nSie können den Typ und den Vorgabewert für den Parameter angeben, z. B.\r\n\r\ninput : var[]..[]\r\nvalue : bool = false"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Output, DynamoCore",
Expand All @@ -108,7 +110,7 @@
],
"Outputs": [],
"Replication": "Disabled",
"Description": "A function output, use with custom nodes"
"Description": "Eine Funktionsausgabe zur Verwendung mit benutzerdefinierten Blöcken"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Symbol, DynamoCore",
Expand All @@ -134,7 +136,7 @@
}
],
"Replication": "Disabled",
"Description": "A function parameter, use with custom nodes.\r\n\r\nYou can specify the type and default value for parameter. E.g.,\r\n\r\ninput : var[]..[]\r\nvalue : bool = false"
"Description": "Ein Funktionsparameter zur Verwendung mit benutzerdefinierten Blöcken.\r\n\r\nSie können den Typ und den Vorgabewert für den Parameter angeben, z. B.\r\n\r\ninput : var[]..[]\r\nvalue : bool = false"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Function, DynamoCore",
Expand All @@ -155,7 +157,7 @@
{
"Id": "15b703b7da544e2080417c924e15f98b",
"Name": "sortIndex",
"Description": "int\nDefault value : 0 (disabled)",
"Description": "int\nVorgabewert : 0 (deaktiviert)",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand All @@ -164,7 +166,7 @@
{
"Id": "b5efc91e4af24abd8bf8906040438e8d",
"Name": "caseInsensitive",
"Description": "bool\nDefault value : false",
"Description": "bool\nVorgabewert : false",
"UsingDefaultValue": true,
"Level": 2,
"UseLevels": false,
Expand All @@ -173,7 +175,7 @@
{
"Id": "b7261535717a4351b29b5742156bd542",
"Name": "orderDescending",
"Description": "bool\nDefault value : false",
"Description": "bool\nVorgabewert : false",
"UsingDefaultValue": true,
"Level": 2,
"UseLevels": false,
Expand All @@ -184,7 +186,7 @@
{
"Id": "b30bb4a50da7403cba69c2d99a395206",
"Name": "seq",
"Description": "return value",
"Description": "Rückgabewert",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand Down Expand Up @@ -212,7 +214,7 @@
}
],
"Replication": "Disabled",
"Description": "Selection between a true and false."
"Description": "Auswahl zwischen True und False"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
Expand All @@ -223,7 +225,7 @@
{
"Id": "646e764ccb90483bad09a84cf19260e0",
"Name": "lists",
"Description": "A list of lists to be transposed.\n\nvar[]..[]",
"Description": "Liste der umzustellenden Listen\n\nvar[]..[]",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand All @@ -234,15 +236,15 @@
{
"Id": "2be94cf689974d50952da203bd98f827",
"Name": "lists",
"Description": "A list of transposed lists.",
"Description": "Liste der umgestellten Listen",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Auto",
"Description": "Swaps rows and columns in a list of lists. If there are some rows that are shorter than others, null values are inserted as place holders in the resultant array such that it is always rectangular.\n\nList.Transpose (lists: var[]..[]): var[]..[]"
"Description": "Vertauscht Zeilen und Spalten in einer Liste von Listen. Wenn einige Zeilen kürzer als die übrigen sind, werden Nullwerte als Platzhalter in das resultierende Array eingefügt, sodass dieses immer rechteckig ist.\n\nList.Transpose (lists: var[]..[]): var[]..[]"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
Expand All @@ -253,7 +255,7 @@
{
"Id": "be20c2906643483eaa4f9c51fab86e3a",
"Name": "lists",
"Description": "A list of lists to be transposed.\n\nvar[]..[]",
"Description": "Liste der umzustellenden Listen\n\nvar[]..[]",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand All @@ -264,15 +266,15 @@
{
"Id": "718c3150158c4a7fb0f2fcacc6541a88",
"Name": "lists",
"Description": "A list of transposed lists.",
"Description": "Liste der umgestellten Listen",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Auto",
"Description": "Swaps rows and columns in a list of lists. If there are some rows that are shorter than others, null values are inserted as place holders in the resultant array such that it is always rectangular.\n\nList.Transpose (lists: var[]..[]): var[]..[]"
"Description": "Vertauscht Zeilen und Spalten in einer Liste von Listen. Wenn einige Zeilen kürzer als die übrigen sind, werden Nullwerte als Platzhalter in das resultierende Array eingefügt, sodass dieses immer rechteckig ist.\n\nList.Transpose (lists: var[]..[]): var[]..[]"
},
{
"ConcreteType": "CoreNodeModels.HigherOrder.Map, CoreNodeModels",
Expand Down Expand Up @@ -310,7 +312,7 @@
}
],
"Replication": "Disabled",
"Description": "Applies a function over all elements of a list, generating a new list from the results."
"Description": "Wendet eine Funktion für alle Elemente einer Liste an, und erstellt aus den Ergebnissen eine neue Liste."
}
],
"Connectors": [
Expand Down Expand Up @@ -368,18 +370,20 @@
"Dependencies": [
"c7b1d8ca-bc1f-4755-9632-bcaaad615794"
],
"NodeLibraryDependencies": [],
"Author": "None provided",
"Bindings": [],
"View": {
"Dynamo": {
"ScaleFactor": 1.0,
"HasRunWithoutCrash": false,
"IsVisibleInDynamoLibrary": true,
"Version": "2.0.1.5055",
"Version": "2.12.1.8246",
"RunType": "Manual",
"RunPeriod": "1000"
},
"Camera": {
"Name": "Background Preview",
"Name": "Hintergrundvorschau",
"EyeX": -17.0,
"EyeY": 24.0,
"EyeZ": 50.0,
Expand All @@ -392,99 +396,99 @@
},
"NodeViews": [
{
"ShowGeometry": true,
"Name": "Python Script",
"Id": "7c37dc8d975c4592b41dbd279b9642dc",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Python Script",
"ShowGeometry": true,
"Excluded": false,
"X": 706.815480828411,
"Y": 102.0
},
{
"ShowGeometry": true,
"Name": "Input",
"Id": "a81d245b73eb4629bb813b6babb2faac",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Input",
"ShowGeometry": true,
"Excluded": false,
"X": 1.55868281825815,
"Y": 193.880754437839
},
{
"ShowGeometry": true,
"Name": "Output",
"Id": "7d0aea85449b42cd9415f351e2c26945",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Output",
"ShowGeometry": true,
"Excluded": false,
"X": 1077.16073548154,
"Y": 150.439222098007
},
{
"ShowGeometry": true,
"Name": "Input",
"Id": "7a8398e441424ba89cb96be9d68946b7",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Input",
"ShowGeometry": true,
"Excluded": false,
"X": -106.889299624922,
"Y": 122.78538567264
},
{
"ShowGeometry": true,
"Name": "List.SortListOfLists",
"Id": "8fac5091b9364a8d8d4a2d86defff803",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "List.SortListOfLists",
"ShowGeometry": true,
"Excluded": false,
"X": 146.046966723598,
"Y": 193.51171609466
},
{
"ShowGeometry": true,
"Name": "Boolean",
"Id": "e9a6e2d36f4a40fe8265df53f1fc7741",
"IsSetAsInput": true,
"IsSetAsOutput": false,
"Name": "Boolean",
"ShowGeometry": true,
"Excluded": false,
"X": -68.2383887793637,
"Y": 257.93849360947
},
{
"ShowGeometry": true,
"Name": "List.Transpose",
"Id": "0b0dd2b4f909436eb60ef35facb403cb",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "List.Transpose",
"ShowGeometry": true,
"Excluded": false,
"X": 399.953218267997,
"Y": 192.141287740062
},
{
"ShowGeometry": true,
"Name": "List.Transpose",
"Id": "e84ad3dc0c824b51b36f47bd1bac6141",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "List.Transpose",
"ShowGeometry": true,
"Excluded": false,
"X": 668.134716304876,
"Y": 211.549140319976
},
{
"ShowGeometry": true,
"Name": "List.Map",
"Id": "a02e2d2f8f5148e183d1e47ac3685f1e",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "List.Map",
"ShowGeometry": true,
"Excluded": false,
"X": 885.943394589114,
"Y": 150.206630402764
}
],
"Annotations": [],
"X": 131.161398513217,
"Y": 327.79698323537,
"X": -137.63860148678302,
"Y": 176.59698323537,
"Zoom": 0.940058480680969
}
}
Loading

0 comments on commit 85d4ceb

Please sign in to comment.