diff --git a/backend/backend/__pycache__/__init__.cpython-310.pyc b/backend/backend/__pycache__/__init__.cpython-310.pyc index b7c6e1fad..54087d392 100644 Binary files a/backend/backend/__pycache__/__init__.cpython-310.pyc and b/backend/backend/__pycache__/__init__.cpython-310.pyc differ diff --git a/backend/backend/__pycache__/settings.cpython-310.pyc b/backend/backend/__pycache__/settings.cpython-310.pyc index a37648f1f..4043430c3 100644 Binary files a/backend/backend/__pycache__/settings.cpython-310.pyc and b/backend/backend/__pycache__/settings.cpython-310.pyc differ diff --git a/backend/backend/__pycache__/urls.cpython-310.pyc b/backend/backend/__pycache__/urls.cpython-310.pyc index 785fbe121..b4cb341df 100644 Binary files a/backend/backend/__pycache__/urls.cpython-310.pyc and b/backend/backend/__pycache__/urls.cpython-310.pyc differ diff --git a/backend/backend/__pycache__/wsgi.cpython-310.pyc b/backend/backend/__pycache__/wsgi.cpython-310.pyc index 8a2382f71..6c0a61cc8 100644 Binary files a/backend/backend/__pycache__/wsgi.cpython-310.pyc and b/backend/backend/__pycache__/wsgi.cpython-310.pyc differ diff --git a/backend/filesystem/demo/graph.json b/backend/filesystem/demo/graph.json index b39baea15..dee3720d8 100644 --- a/backend/filesystem/demo/graph.json +++ b/backend/filesystem/demo/graph.json @@ -1,7 +1,7 @@ { "id": "6965f5c5-3788-427f-a066-24494d05dbf4", - "offsetX": 14.586606327535232, - "offsetY": 37.546117781319126, + "offsetX": -18.413393672464768, + "offsetY": 89.54611778131913, "zoom": 86.69999999999996, "gridSize": 0, "layers": [ @@ -23,14 +23,14 @@ { "id": "ec98da50-9c52-4915-899d-a4df76f517f7", "type": "point", - "x": 133.04212024165113, - "y": 295.11361014994236 + "x": 128.48521949070516, + "y": 296.1213376984994 }, { "id": "b9749ac7-ecbe-42ff-9642-50e6c890b35c", "type": "point", - "x": 203.64244521337943, - "y": 295.022491349481 + "x": 203.6485800512093, + "y": 296.0060256039925 } ], "labels": [], @@ -51,14 +51,14 @@ { "id": "f884fe56-8064-45cb-bdcd-e1598ff26a6f", "type": "point", - "x": 362.9757582016605, - "y": 295.022491349481 + "x": 356.83978242829994, + "y": 296.0060256039925 }, { "id": "d0a49594-88f5-43d0-8f6a-5bdf2c1d2068", "type": "point", - "x": 441.1591085150167, - "y": 222.01672433679346 + "x": 441.1726280435682, + "y": 223.01487774319367 } ], "labels": [], @@ -79,14 +79,14 @@ { "id": "ec8e6aed-9dbc-42fc-8c1a-cbceb0121606", "type": "point", - "x": 590.5591329290792, - "y": 222.01672433679357 + "x": 583.3294907886664, + "y": 223.01487774319367 }, { "id": "dd28a3b5-bef7-4cc0-ad8a-8640b188f6c2", "type": "point", - "x": 687.9816227811691, - "y": 113.24937945978101 + "x": 690.2884278561406, + "y": 92.33434912664589 } ], "labels": [], @@ -107,14 +107,14 @@ { "id": "848742f1-d4b7-48e4-b8b9-5525133623ea", "type": "point", - "x": 590.5591329290792, - "y": 222.01672433679357 + "x": 583.3294907886664, + "y": 223.01487774319367 }, { "id": "820bab20-f1f4-4524-8f9d-90a6410d824a", "type": "point", - "x": 651.0727415816309, - "y": 281.30014325105145 + "x": 651.0727415816305, + "y": 282.2997259310902 } ], "labels": [], @@ -135,15 +135,15 @@ { "id": "ad8ac051-5651-4439-8177-0986f75bf6da", "type": "point", - "x": 671.5647849063132, - "y": 195.5638762316056 + "x": 671.5456366219996, + "y": 196.56349411069658 }, { "id": "41e5885c-fa8c-457f-8696-674789b886ed", "type": "point", "selected": true, - "x": 688.981267059549, - "y": 137.24013815986035 + "x": 691.2880721345201, + "y": 118.32436998419618 } ], "labels": [], @@ -164,14 +164,14 @@ { "id": "5aae69f2-6eec-4851-8a91-e2d75991e6a2", "type": "point", - "x": 857.2434451571785, - "y": 137.24013815986035 + "x": 854.071588179093, + "y": 118.32436998419618 }, { "id": "a734bf9c-627c-48e3-99a4-729ed2749b0b", "type": "point", "x": 913.8947618692378, - "y": 193.25707115663442 + "y": 194.2566890357254 } ], "labels": [], @@ -180,26 +180,26 @@ "curvyness": 50, "selectedColor": "rgb(0,192,255)" }, - "a75da59f-848e-49db-a29d-d643bac7fffe": { - "id": "a75da59f-848e-49db-a29d-d643bac7fffe", + "b1e9b725-bd30-4bf0-bf76-230d627d03c3": { + "id": "b1e9b725-bd30-4bf0-bf76-230d627d03c3", "type": "default", "selected": false, - "source": "34a6a14a-afc0-4c30-baf4-124ed575b2c8", - "sourcePort": "6c1ee280-e21b-4a8d-8377-c2cf716fe87d", - "target": "21fcd645-bb95-43d9-82e0-c293af569808", - "targetPort": "fff58317-bfef-4407-9f52-eded4d12c4aa", + "source": "4ef17eb9-1a61-4664-b17b-8f9d9238f403", + "sourcePort": "965ed5ac-1260-4a28-a055-f5f310c316cd", + "target": "34a6a14a-afc0-4c30-baf4-124ed575b2c8", + "targetPort": "6c1ee280-e21b-4a8d-8377-c2cf716fe87d", "points": [ { - "id": "408ba600-9e4c-476a-82d2-f6295086960b", + "id": "338ee89e-1237-48b8-8cac-4cf3bf0b9e92", "type": "point", - "x": 362.9757582016605, - "y": 295.022491349481 + "x": 646.5551544456732, + "y": 464.5373268538123 }, { - "id": "a4c55bd1-cb50-46c8-9908-5f206182a677", + "id": "65ea390e-3d71-48a9-bc68-3de6a124be39", "type": "point", - "x": 660.3768366111865, - "y": 438.8549017123403 + "x": 356.83978242829994, + "y": 296.0060256039925 } ], "labels": [], @@ -208,26 +208,26 @@ "curvyness": 50, "selectedColor": "rgb(0,192,255)" }, - "da9a7672-3f4c-4c03-9a66-a24dc43912ba": { - "id": "da9a7672-3f4c-4c03-9a66-a24dc43912ba", + "aeffaa7a-9fcd-495c-b362-c06f4181b7a4": { + "id": "aeffaa7a-9fcd-495c-b362-c06f4181b7a4", "type": "default", "selected": false, "source": "38631cfc-99fa-40ab-acc5-89c9012d4ee7", "sourcePort": "c36b298a-6ca3-4e7a-a81a-606ba64b6109", - "target": "21fcd645-bb95-43d9-82e0-c293af569808", - "targetPort": "6c7afbe4-0d16-4c75-a32d-ee0167eb39e1", + "target": "4ef17eb9-1a61-4664-b17b-8f9d9238f403", + "targetPort": "d796bdb7-3426-4a0f-892d-81b6b6dc8cc2", "points": [ { - "id": "8be2b3e8-47af-4bc2-b5ea-2d00c5597193", + "id": "627585f2-b8cc-45d8-a70a-c1ee72136508", "type": "point", - "x": 587.9239526542949, - "y": 529.2240239634352 + "x": 517.81631113721, + "y": 479.473894994108 }, { - "id": "83fbc12c-6404-4973-8689-82927a262561", + "id": "43773cce-7110-44ee-b321-d9b37b9113bd", "type": "point", - "x": 661.3764896893294, - "y": 462.8457308105237 + "x": 647.5548075238162, + "y": 490.5273917101777 } ], "labels": [], @@ -236,26 +236,26 @@ "curvyness": 50, "selectedColor": "rgb(0,192,255)" }, - "a2184120-a504-4d06-922d-6609c4356805": { - "id": "a2184120-a504-4d06-922d-6609c4356805", + "8ae64583-82c7-4f04-a143-bcf21d341fcc": { + "id": "8ae64583-82c7-4f04-a143-bcf21d341fcc", "type": "default", - "selected": true, - "source": "aa7de81c-a0a4-48d9-9568-0276d76a1e16", - "sourcePort": "0d7085d1-9e98-47e9-b91f-d8ba95822d5a", - "target": "21fcd645-bb95-43d9-82e0-c293af569808", - "targetPort": "2b8dd008-8ce8-42f9-8669-94b20f5fb48e", + "selected": false, + "source": "5cfa8c28-381b-43b0-9261-28ab9a5b989c", + "sourcePort": "cf2089d6-c926-4183-a0dc-132e7a37531c", + "target": "4ef17eb9-1a61-4664-b17b-8f9d9238f403", + "targetPort": "137ea818-fe56-4e9f-9912-424f7ae85c8e", "points": [ { - "id": "e6e53824-9d7e-4891-9dad-fb16a9b89254", + "id": "aa335c3c-abd9-4804-b319-3887a47189ea", "type": "point", - "x": 837.8470779246239, - "y": 546.1790641438569 + "x": 533.1373321237297, + "y": 579.4739090737294 }, { - "id": "cc645734-8b5f-43eb-a834-046bdd97ebb9", + "id": "9bb19ad8-4e1c-4985-9895-483fa09dc571", "type": "point", - "x": 799.5733182828992, - "y": 462.8457308105237 + "x": 647.5548075238162, + "y": 516.5365960510937 } ], "labels": [], @@ -282,8 +282,8 @@ { "id": "42be04c1-b9a7-482f-a3ad-14af212d8195", "type": "children", - "x": 128.0421202416513, - "y": 290.11361014994236, + "x": 123.48714769477633, + "y": 291.12325710280754, "name": "children", "alignment": "right", "parentNode": "e6829f4f-5e0c-494a-be5c-be3b1a0b5a4c", @@ -307,8 +307,8 @@ { "id": "b3cffd29-2931-4f11-89fb-ad11e52e02af", "type": "parent", - "x": 198.64244521337937, - "y": 290.022491349481, + "x": 198.65049945551743, + "y": 291.0079450083006, "name": "parent", "alignment": "left", "parentNode": "34a6a14a-afc0-4c30-baf4-124ed575b2c8", @@ -321,14 +321,14 @@ { "id": "6c1ee280-e21b-4a8d-8377-c2cf716fe87d", "type": "children", - "x": 357.9757582016605, - "y": 290.022491349481, + "x": 351.84170183260807, + "y": 291.0079450083006, "name": "children", "alignment": "right", "parentNode": "34a6a14a-afc0-4c30-baf4-124ed575b2c8", "links": [ "ad62412b-1ed3-4886-8256-fa79be274dd3", - "a75da59f-848e-49db-a29d-d643bac7fffe" + "b1e9b725-bd30-4bf0-bf76-230d627d03c3" ], "in": false, "label": "children" @@ -347,8 +347,8 @@ { "id": "494c8189-341f-431a-a851-820643c46b6d", "type": "parent", - "x": 436.1591085150166, - "y": 217.01672433679357, + "x": 436.1745474478763, + "y": 218.01679714750182, "name": "parent", "alignment": "left", "parentNode": "420703c8-205c-406b-9dcc-878f0ae4d931", @@ -361,8 +361,8 @@ { "id": "f289285e-80e0-4621-b2a9-75ebad808cbb", "type": "children", - "x": 585.5591329290792, - "y": 217.01672433679357, + "x": 578.3314101929744, + "y": 218.01679714750182, "name": "children", "alignment": "right", "parentNode": "420703c8-205c-406b-9dcc-878f0ae4d931", @@ -381,14 +381,14 @@ "id": "9ebc6093-69b8-463a-8471-4b2fc1e6b313", "type": "basic", "selected": false, - "x": 686.9873125720877, - "y": 92.75086505190302, + "x": 689.2941176470589, + "y": 70.83621683967694, "ports": [ { "id": "e84b4dff-9620-47c1-ad96-50e9938e0ece", "type": "parent", - "x": 682.9835421854773, - "y": 108.25129886408915, + "x": 685.2903472604486, + "y": 87.33626853095407, "name": "parent", "alignment": "left", "parentNode": "9ebc6093-69b8-463a-8471-4b2fc1e6b313", @@ -401,8 +401,8 @@ { "id": "3e13fbe0-a99e-4f48-a5a9-eb1231cf746d", "type": "input", - "x": 683.9831952636202, - "y": 132.24205756416848, + "x": 686.2900003385913, + "y": 113.32629818826737, "name": "amplitude", "alignment": "left", "parentNode": "9ebc6093-69b8-463a-8471-4b2fc1e6b313", @@ -415,8 +415,8 @@ { "id": "d829855c-366f-495f-87c5-60aaee09b180", "type": "output", - "x": 852.2453645614866, - "y": 132.24205756416848, + "x": 849.0735075834012, + "y": 113.32629818826737, "name": "obs_port", "alignment": "right", "parentNode": "9ebc6093-69b8-463a-8471-4b2fc1e6b313", @@ -440,8 +440,8 @@ { "id": "ce913995-2ee2-434f-b0aa-f7253248bb2c", "type": "parent", - "x": 646.0746609859391, - "y": 276.30206265535975, + "x": 646.0746609859386, + "y": 277.30164533539835, "name": "parent", "alignment": "left", "parentNode": "e1991dbc-3842-4c94-9eac-4a22b0837b94", @@ -465,8 +465,8 @@ { "id": "178fa7e2-f83f-4ba9-8f57-a11e60db962f", "type": "tag output", - "x": 666.5667043106214, - "y": 190.56579563591373, + "x": 666.5475560263077, + "y": 191.5654135150047, "name": "tag output", "alignment": "right", "parentNode": "a284a54f-fd9e-4235-8275-5000bdfbaf7d", @@ -491,7 +491,7 @@ "id": "5c44f91d-8b75-4aad-969f-54a75491080d", "type": "tag input", "x": 908.896690073309, - "y": 188.25899056094255, + "y": 189.25860844003353, "name": "tag input", "alignment": "left", "parentNode": "e9a09d02-8343-4a1f-bf75-8f56206278cf", @@ -505,107 +505,107 @@ "name": "{n_obs}", "color": "rgb(255,153,51)" }, - "21fcd645-bb95-43d9-82e0-c293af569808": { - "id": "21fcd645-bb95-43d9-82e0-c293af569808", + "38631cfc-99fa-40ab-acc5-89c9012d4ee7": { + "id": "38631cfc-99fa-40ab-acc5-89c9012d4ee7", + "type": "tag", + "selected": false, + "x": 480.6124567474049, + "y": 462.98846597462517, + "ports": [ + { + "id": "c36b298a-6ca3-4e7a-a81a-606ba64b6109", + "type": "tag output", + "x": 512.8182305415182, + "y": 474.47582319817906, + "name": "tag output", + "alignment": "right", + "parentNode": "38631cfc-99fa-40ab-acc5-89c9012d4ee7", + "links": [ + "aeffaa7a-9fcd-495c-b362-c06f4181b7a4" + ], + "in": false, + "label": "tag output" + } + ], + "name": "0.3", + "color": "rgb(255,153,51)" + }, + "4ef17eb9-1a61-4664-b17b-8f9d9238f403": { + "id": "4ef17eb9-1a61-4664-b17b-8f9d9238f403", "type": "basic", "selected": false, - "x": 659.3898500576703, - "y": 418.35178777393315, + "x": 645.5490196078433, + "y": 443.0346020761246, "ports": [ { - "id": "fff58317-bfef-4407-9f52-eded4d12c4aa", + "id": "965ed5ac-1260-4a28-a055-f5f310c316cd", "type": "parent", - "x": 655.3787560154946, - "y": 433.8568211166484, + "x": 641.5570738499813, + "y": 459.53924625812044, "name": "parent", "alignment": "left", - "parentNode": "21fcd645-bb95-43d9-82e0-c293af569808", + "parentNode": "4ef17eb9-1a61-4664-b17b-8f9d9238f403", "links": [ - "a75da59f-848e-49db-a29d-d643bac7fffe" + "b1e9b725-bd30-4bf0-bf76-230d627d03c3" ], "in": true, "label": "parent" }, { - "id": "6c7afbe4-0d16-4c75-a32d-ee0167eb39e1", + "id": "d796bdb7-3426-4a0f-892d-81b6b6dc8cc2", "type": "input", - "x": 656.3784090936376, - "y": 457.84765021483184, + "x": 642.5567269281244, + "y": 485.52931111448584, "name": "speed", "alignment": "left", - "parentNode": "21fcd645-bb95-43d9-82e0-c293af569808", + "parentNode": "4ef17eb9-1a61-4664-b17b-8f9d9238f403", "links": [ - "da9a7672-3f4c-4c03-9a66-a24dc43912ba" + "aeffaa7a-9fcd-495c-b362-c06f4181b7a4" ], "in": true, "label": "input" }, { - "id": "2b8dd008-8ce8-42f9-8669-94b20f5fb48e", - "type": "output", - "x": 794.5752376872074, - "y": 457.84765021483184, + "id": "137ea818-fe56-4e9f-9912-424f7ae85c8e", + "type": "input", + "x": 642.5567269281244, + "y": 511.5385242551649, "name": "obs_port", - "alignment": "right", - "parentNode": "21fcd645-bb95-43d9-82e0-c293af569808", + "alignment": "left", + "parentNode": "4ef17eb9-1a61-4664-b17b-8f9d9238f403", "links": [ - "a2184120-a504-4d06-922d-6609c4356805" + "8ae64583-82c7-4f04-a143-bcf21d341fcc" ], - "in": false, - "label": "output" + "in": true, + "label": "input" } ], "name": "Forward", "color": "rgb(128,0,128)" }, - "38631cfc-99fa-40ab-acc5-89c9012d4ee7": { - "id": "38631cfc-99fa-40ab-acc5-89c9012d4ee7", + "5cfa8c28-381b-43b0-9261-28ab9a5b989c": { + "id": "5cfa8c28-381b-43b0-9261-28ab9a5b989c", "type": "tag", - "selected": false, - "x": 550.9700115340255, - "y": 513.7381776239909, + "selected": true, + "x": 480.6124567474049, + "y": 561.8350634371395, "ports": [ { - "id": "c36b298a-6ca3-4e7a-a81a-606ba64b6109", + "id": "cf2089d6-c926-4183-a0dc-132e7a37531c", "type": "tag output", - "x": 582.925872058603, - "y": 524.2259521675063, + "x": 528.1392515280378, + "y": 574.4758372778005, "name": "tag output", "alignment": "right", - "parentNode": "38631cfc-99fa-40ab-acc5-89c9012d4ee7", + "parentNode": "5cfa8c28-381b-43b0-9261-28ab9a5b989c", "links": [ - "da9a7672-3f4c-4c03-9a66-a24dc43912ba" + "8ae64583-82c7-4f04-a143-bcf21d341fcc" ], "in": false, "label": "tag output" } ], - "name": "0.3", - "color": "rgb(255,153,51)" - }, - "aa7de81c-a0a4-48d9-9568-0276d76a1e16": { - "id": "aa7de81c-a0a4-48d9-9568-0276d76a1e16", - "type": "tag", - "selected": true, - "x": 834.707035755479, - "y": 531.8465974625144, - "ports": [ - { - "id": "0d7085d1-9e98-47e9-b91f-d8ba95822d5a", - "type": "tag input", - "x": 832.8489973289319, - "y": 541.180983548165, - "name": "tag input", - "alignment": "left", - "parentNode": "aa7de81c-a0a4-48d9-9568-0276d76a1e16", - "links": [ - "a2184120-a504-4d06-922d-6609c4356805" - ], - "in": true, - "label": "tag input" - } - ], - "name": "{n_obs}", + "name": "value", "color": "rgb(255,153,51)" } } diff --git a/backend/filesystem/ejemplo/actions/action_1 b/backend/filesystem/ejemplo/actions/action_1 new file mode 100644 index 000000000..e69de29bb diff --git a/backend/filesystem/ejemplo/actions/action_2 b/backend/filesystem/ejemplo/actions/action_2 new file mode 100644 index 000000000..e69de29bb diff --git a/backend/filesystem/ejemplo/actions/action_3 b/backend/filesystem/ejemplo/actions/action_3 new file mode 100644 index 000000000..e69de29bb diff --git a/backend/requirements.txt b/backend/requirements.txt new file mode 100644 index 000000000..cd9b565de --- /dev/null +++ b/backend/requirements.txt @@ -0,0 +1,2 @@ +django==4.2 +djangorestframework==3.14 diff --git a/backend/tree_api/__pycache__/__init__.cpython-310.pyc b/backend/tree_api/__pycache__/__init__.cpython-310.pyc index bcb94d8a6..85d3b4925 100644 Binary files a/backend/tree_api/__pycache__/__init__.cpython-310.pyc and b/backend/tree_api/__pycache__/__init__.cpython-310.pyc differ diff --git a/backend/tree_api/__pycache__/admin.cpython-310.pyc b/backend/tree_api/__pycache__/admin.cpython-310.pyc index 5d120d900..49a174546 100644 Binary files a/backend/tree_api/__pycache__/admin.cpython-310.pyc and b/backend/tree_api/__pycache__/admin.cpython-310.pyc differ diff --git a/backend/tree_api/__pycache__/app_generator.cpython-310.pyc b/backend/tree_api/__pycache__/app_generator.cpython-310.pyc new file mode 100644 index 000000000..cfd46e9fe Binary files /dev/null and b/backend/tree_api/__pycache__/app_generator.cpython-310.pyc differ diff --git a/backend/tree_api/__pycache__/apps.cpython-310.pyc b/backend/tree_api/__pycache__/apps.cpython-310.pyc index 0bff19c14..30d5a2dfb 100644 Binary files a/backend/tree_api/__pycache__/apps.cpython-310.pyc and b/backend/tree_api/__pycache__/apps.cpython-310.pyc differ diff --git a/backend/tree_api/__pycache__/json_translator.cpython-310.pyc b/backend/tree_api/__pycache__/json_translator.cpython-310.pyc index b8baf4657..999222f39 100644 Binary files a/backend/tree_api/__pycache__/json_translator.cpython-310.pyc and b/backend/tree_api/__pycache__/json_translator.cpython-310.pyc differ diff --git a/backend/tree_api/__pycache__/models.cpython-310.pyc b/backend/tree_api/__pycache__/models.cpython-310.pyc index ad5aeb612..df9f1072c 100644 Binary files a/backend/tree_api/__pycache__/models.cpython-310.pyc and b/backend/tree_api/__pycache__/models.cpython-310.pyc differ diff --git a/backend/tree_api/__pycache__/serializers.cpython-310.pyc b/backend/tree_api/__pycache__/serializers.cpython-310.pyc index a47cb31ce..9180a6033 100644 Binary files a/backend/tree_api/__pycache__/serializers.cpython-310.pyc and b/backend/tree_api/__pycache__/serializers.cpython-310.pyc differ diff --git a/backend/tree_api/__pycache__/tree_generator.cpython-310.pyc b/backend/tree_api/__pycache__/tree_generator.cpython-310.pyc index f3ca1d83f..04c105233 100644 Binary files a/backend/tree_api/__pycache__/tree_generator.cpython-310.pyc and b/backend/tree_api/__pycache__/tree_generator.cpython-310.pyc differ diff --git a/backend/tree_api/__pycache__/urls.cpython-310.pyc b/backend/tree_api/__pycache__/urls.cpython-310.pyc index a89d14224..e3ad0ae3f 100644 Binary files a/backend/tree_api/__pycache__/urls.cpython-310.pyc and b/backend/tree_api/__pycache__/urls.cpython-310.pyc differ diff --git a/backend/tree_api/__pycache__/views.cpython-310.pyc b/backend/tree_api/__pycache__/views.cpython-310.pyc index 4cb6e26f5..f23fb2ec6 100644 Binary files a/backend/tree_api/__pycache__/views.cpython-310.pyc and b/backend/tree_api/__pycache__/views.cpython-310.pyc differ diff --git a/backend/tree_api/migrations/__pycache__/__init__.cpython-310.pyc b/backend/tree_api/migrations/__pycache__/__init__.cpython-310.pyc index 1e67e1a6f..5f31ad97b 100644 Binary files a/backend/tree_api/migrations/__pycache__/__init__.cpython-310.pyc and b/backend/tree_api/migrations/__pycache__/__init__.cpython-310.pyc differ diff --git a/frontend/src/components/diagram_editor/DiagramEditor.tsx b/frontend/src/components/diagram_editor/DiagramEditor.tsx index 6d1d1e138..a52fd9c50 100644 --- a/frontend/src/components/diagram_editor/DiagramEditor.tsx +++ b/frontend/src/components/diagram_editor/DiagramEditor.tsx @@ -140,7 +140,10 @@ const DiagramEditor = ({currentProjectname, setModelJson, setProjectChanges} : { // Add the nodes default ports const addDefaultPorts = (node:any) => { - var nodeName = node.options.name; + console.log("Adding default ports"); + + var nodeName = node.getName(); + console.log(nodeName); if (nodeName == "RetryUntilSuccessful") node.addInputPort("num_attempts"); else if (nodeName == "Repeat") node.addInputPort("num_cycles"); else if (nodeName == "Delay") node.addInputPort("delay_ms");