From 652ed00b362c683c1a92fae1a37a42da7869c457 Mon Sep 17 00:00:00 2001 From: smahmed776 Date: Sat, 12 Aug 2023 02:24:57 +0000 Subject: [PATCH 1/3] update: modify write_doc script --- .../a1-[autogen]/docstring.txt | 11 +- .../OPEN_IMAGE/a1-[autogen]/docstring.txt | 5 + .../OPEN_PARQUET/a1-[autogen]/docstring.txt | 9 +- .../FILE/READ_CSV/a1-[autogen]/docstring.txt | 5 + .../FILE/READ_S3/a1-[autogen]/docstring.txt | 6 + .../SKLEARNIMAGE/a1-[autogen]/docstring.txt | 11 + .../SKLEARNIMAGE/a1-[autogen]/python_code.txt | 3 +- .../LOCAL_FILE/a1-[autogen]/docstring.txt | 4 +- .../OPEN_MATLAB/a1-[autogen]/docstring.txt | 3 +- .../ADD/a1-[autogen]/python_code.txt | 3 +- .../DIVIDE/a1-[autogen]/python_code.txt | 3 +- .../MULTIPLY/a1-[autogen]/python_code.txt | 3 +- .../SUBTRACT/a1-[autogen]/python_code.txt | 3 +- .../DF_2_ORDEREDTRIPLE/examples/EX1/app.txt | 324 ++++++++++++------ .../PLOTLY/BAR/a1-[autogen]/python_code.txt | 2 +- .../BIG_NUMBER/a1-[autogen]/python_code.txt | 2 +- .../COMPOSITE/a1-[autogen]/python_code.txt | 2 +- .../HISTOGRAM/a1-[autogen]/python_code.txt | 3 +- .../PLOTLY/IMAGE/a1-[autogen]/python_code.txt | 2 +- .../PLOTLY/LINE/a1-[autogen]/python_code.txt | 3 +- .../SCATTER/a1-[autogen]/python_code.txt | 3 +- .../SCATTER3D/a1-[autogen]/python_code.txt | 2 +- .../SURFACE3D/a1-[autogen]/python_code.txt | 2 +- .../PLOTLY/TABLE/a1-[autogen]/python_code.txt | 2 +- 24 files changed, 283 insertions(+), 133 deletions(-) diff --git a/docs/nodes/EXTRACTORS/DATAFRAME/EXTRACT_COLUMNS/a1-[autogen]/docstring.txt b/docs/nodes/EXTRACTORS/DATAFRAME/EXTRACT_COLUMNS/a1-[autogen]/docstring.txt index 9340a8e9db..5e46bb3fd0 100644 --- a/docs/nodes/EXTRACTORS/DATAFRAME/EXTRACT_COLUMNS/a1-[autogen]/docstring.txt +++ b/docs/nodes/EXTRACTORS/DATAFRAME/EXTRACT_COLUMNS/a1-[autogen]/docstring.txt @@ -1,12 +1,17 @@ The EXTRACT_COLUMNS node takes an input dataframe/matrix and returns a dataframe/matrix with only the specified columns. +Inputs +------ +default : DataFrame|Matrix + Input to use as the table for column extraction + Parameters ---------- columns : list of str or list of int - The columns to extract from the input dataframe. + The columns to extract from the input dataframe Returns ------- -DataFrame | Matrix - The dataframe or matrix with only the specified columns. +DataFrame|Matrix + DataFrame or Matrix with only the specified columns diff --git a/docs/nodes/EXTRACTORS/FILE/OPEN_IMAGE/a1-[autogen]/docstring.txt b/docs/nodes/EXTRACTORS/FILE/OPEN_IMAGE/a1-[autogen]/docstring.txt index 583b96d7f3..c6d15f45fa 100644 --- a/docs/nodes/EXTRACTORS/FILE/OPEN_IMAGE/a1-[autogen]/docstring.txt +++ b/docs/nodes/EXTRACTORS/FILE/OPEN_IMAGE/a1-[autogen]/docstring.txt @@ -1,6 +1,10 @@ The OPEN_IMAGE node loads an image file from disk and returns an image type DataContainer object. +Inputs +------ +default: None + Parameters ---------- file_path : str @@ -9,3 +13,4 @@ file_path : str Returns ------- Image + Image loaded from specified file path diff --git a/docs/nodes/EXTRACTORS/FILE/OPEN_PARQUET/a1-[autogen]/docstring.txt b/docs/nodes/EXTRACTORS/FILE/OPEN_PARQUET/a1-[autogen]/docstring.txt index 951a2cb3c2..1ea53a05fe 100644 --- a/docs/nodes/EXTRACTORS/FILE/OPEN_PARQUET/a1-[autogen]/docstring.txt +++ b/docs/nodes/EXTRACTORS/FILE/OPEN_PARQUET/a1-[autogen]/docstring.txt @@ -1,11 +1,16 @@ The OPEN_PARQUET node loads a local file of the .parquet file format. It then returns the file as a pandas.Dataframe type. +Inputs +------ +default: None + Parameters ---------- file_path : str - path to the file to be loaded + File path to the .parquet file or an URL of a .parquet file. Returns ------- -Dataframe +DataFrame + DataFrame loaded from .parquet file diff --git a/docs/nodes/EXTRACTORS/FILE/READ_CSV/a1-[autogen]/docstring.txt b/docs/nodes/EXTRACTORS/FILE/READ_CSV/a1-[autogen]/docstring.txt index 8d6c06e075..1112336657 100644 --- a/docs/nodes/EXTRACTORS/FILE/READ_CSV/a1-[autogen]/docstring.txt +++ b/docs/nodes/EXTRACTORS/FILE/READ_CSV/a1-[autogen]/docstring.txt @@ -5,3 +5,8 @@ Parameters ---------- file_path : str File path to the .csv file or an URL of a .csv file. + +Returns +------- +DataFrame + DataFrame loaded from .csv file diff --git a/docs/nodes/EXTRACTORS/FILE/READ_S3/a1-[autogen]/docstring.txt b/docs/nodes/EXTRACTORS/FILE/READ_S3/a1-[autogen]/docstring.txt index 3777971d78..1cea04d2eb 100644 --- a/docs/nodes/EXTRACTORS/FILE/READ_S3/a1-[autogen]/docstring.txt +++ b/docs/nodes/EXTRACTORS/FILE/READ_S3/a1-[autogen]/docstring.txt @@ -1,6 +1,10 @@ The READ_S3 node takes a S3_key name, S3 bucket name, and file name as input, and extracts the file from the specified bucket using the S3_key that was saved. +Inputs +------ +default: None + Parameters ---------- s3_name : str @@ -13,3 +17,5 @@ file_name : str Returns ------- DataFrame + DataFrame loaded from file in the specfied bucket + diff --git a/docs/nodes/GENERATORS/SAMPLE_IMAGES/SKLEARNIMAGE/a1-[autogen]/docstring.txt b/docs/nodes/GENERATORS/SAMPLE_IMAGES/SKLEARNIMAGE/a1-[autogen]/docstring.txt index 388d068ce1..61aa8d505a 100644 --- a/docs/nodes/GENERATORS/SAMPLE_IMAGES/SKLEARNIMAGE/a1-[autogen]/docstring.txt +++ b/docs/nodes/GENERATORS/SAMPLE_IMAGES/SKLEARNIMAGE/a1-[autogen]/docstring.txt @@ -3,3 +3,14 @@ The SKLEARNIMAGE node is designed to load example images from scikit-image. Examples can be found here: https://scikit-image.org/docs/stable/auto_examples/index.html + +Parameters +---------- +img_key : str + The name of the image to be loader from scikit-image. + +Outputs +------- +Image + DataContainer containing image loaded from scikit-image. + diff --git a/docs/nodes/GENERATORS/SAMPLE_IMAGES/SKLEARNIMAGE/a1-[autogen]/python_code.txt b/docs/nodes/GENERATORS/SAMPLE_IMAGES/SKLEARNIMAGE/a1-[autogen]/python_code.txt index eae6c4dfa7..4e2e0ce36b 100644 --- a/docs/nodes/GENERATORS/SAMPLE_IMAGES/SKLEARNIMAGE/a1-[autogen]/python_code.txt +++ b/docs/nodes/GENERATORS/SAMPLE_IMAGES/SKLEARNIMAGE/a1-[autogen]/python_code.txt @@ -3,7 +3,7 @@ from skimage import data from typing import Literal -@flojoy(node_type="default", deps={"scikit-image": "0.21.0"}) +@flojoy(deps={"scikit-image": "0.21.0"}) def SKLEARNIMAGE( img_key: Literal[ "astronaut", @@ -52,6 +52,7 @@ def SKLEARNIMAGE( ] = "astronaut" ) -> Image: + img_array = getattr(data, img_key)() if len(img_array.shape) == 2: diff --git a/docs/nodes/LOADERS/LOCAL_FILE_SYSTEM/LOCAL_FILE/a1-[autogen]/docstring.txt b/docs/nodes/LOADERS/LOCAL_FILE_SYSTEM/LOCAL_FILE/a1-[autogen]/docstring.txt index 6d597f8be7..50f25be046 100644 --- a/docs/nodes/LOADERS/LOCAL_FILE_SYSTEM/LOCAL_FILE/a1-[autogen]/docstring.txt +++ b/docs/nodes/LOADERS/LOCAL_FILE_SYSTEM/LOCAL_FILE/a1-[autogen]/docstring.txt @@ -11,5 +11,5 @@ file_path : str Returns ------- Image|DataFrame - type 'image' for file_type 'image' - type 'dataframe' for file_type 'json', 'csv', 'excel', 'xml' + Image for file_type 'image' + DataFrame for file_type 'json', 'csv', 'excel', 'xml' diff --git a/docs/nodes/LOADERS/LOCAL_FILE_SYSTEM/OPEN_MATLAB/a1-[autogen]/docstring.txt b/docs/nodes/LOADERS/LOCAL_FILE_SYSTEM/OPEN_MATLAB/a1-[autogen]/docstring.txt index a113bd83ae..03095c49bb 100644 --- a/docs/nodes/LOADERS/LOCAL_FILE_SYSTEM/OPEN_MATLAB/a1-[autogen]/docstring.txt +++ b/docs/nodes/LOADERS/LOCAL_FILE_SYSTEM/OPEN_MATLAB/a1-[autogen]/docstring.txt @@ -10,4 +10,5 @@ file_path : str Returns ------- -Dataframe +DataFrame + DataFrame loaded from the .mat file diff --git a/docs/nodes/TRANSFORMERS/ARITHMETIC/ADD/a1-[autogen]/python_code.txt b/docs/nodes/TRANSFORMERS/ARITHMETIC/ADD/a1-[autogen]/python_code.txt index ef742f277c..a004184b17 100644 --- a/docs/nodes/TRANSFORMERS/ARITHMETIC/ADD/a1-[autogen]/python_code.txt +++ b/docs/nodes/TRANSFORMERS/ARITHMETIC/ADD/a1-[autogen]/python_code.txt @@ -1,6 +1,6 @@ import numpy as np from flojoy import flojoy, OrderedPair, Scalar, Vector -from nodes.TRANSFORMERS.ARITHMETIC.utils.arithmetic_utils import get_val +from flojoy_nodes.TRANSFORMERS.ARITHMETIC.utils.arithmetic_utils import get_val from functools import reduce @@ -9,6 +9,7 @@ def ADD( a: OrderedPair | Scalar | Vector, b: list[OrderedPair | Scalar | Vector] ) -> OrderedPair | Scalar | Vector: + initial = get_val(a) seq = map(lambda dc: get_val(dc), b) y = reduce(lambda u, v: np.add(u, v), seq, initial) diff --git a/docs/nodes/TRANSFORMERS/ARITHMETIC/DIVIDE/a1-[autogen]/python_code.txt b/docs/nodes/TRANSFORMERS/ARITHMETIC/DIVIDE/a1-[autogen]/python_code.txt index 3b02013910..fb1b7cee07 100644 --- a/docs/nodes/TRANSFORMERS/ARITHMETIC/DIVIDE/a1-[autogen]/python_code.txt +++ b/docs/nodes/TRANSFORMERS/ARITHMETIC/DIVIDE/a1-[autogen]/python_code.txt @@ -1,6 +1,6 @@ import numpy as np from flojoy import flojoy, OrderedPair, Scalar, Vector -from nodes.TRANSFORMERS.ARITHMETIC.utils.arithmetic_utils import get_val +from flojoy_nodes.TRANSFORMERS.ARITHMETIC.utils.arithmetic_utils import get_val from functools import reduce @@ -9,6 +9,7 @@ def DIVIDE( a: OrderedPair | Scalar | Vector, b: list[OrderedPair | Scalar | Vector] ) -> OrderedPair | Scalar | Vector: + initial = get_val(a) seq = map(lambda dc: get_val(dc), b) y = reduce(lambda u, v: np.divide(u, v), seq, initial) diff --git a/docs/nodes/TRANSFORMERS/ARITHMETIC/MULTIPLY/a1-[autogen]/python_code.txt b/docs/nodes/TRANSFORMERS/ARITHMETIC/MULTIPLY/a1-[autogen]/python_code.txt index 9e9eca5879..ece8ac532e 100644 --- a/docs/nodes/TRANSFORMERS/ARITHMETIC/MULTIPLY/a1-[autogen]/python_code.txt +++ b/docs/nodes/TRANSFORMERS/ARITHMETIC/MULTIPLY/a1-[autogen]/python_code.txt @@ -1,6 +1,6 @@ import numpy as np from flojoy import OrderedPair, flojoy, Scalar, Vector -from nodes.TRANSFORMERS.ARITHMETIC.utils.arithmetic_utils import get_val +from flojoy_nodes.TRANSFORMERS.ARITHMETIC.utils.arithmetic_utils import get_val from functools import reduce @@ -9,6 +9,7 @@ def MULTIPLY( a: OrderedPair | Scalar | Vector, b: list[OrderedPair | Scalar | Vector] ) -> OrderedPair | Scalar | Vector: + initial = get_val(a) seq = map(lambda dc: get_val(dc), b) y = reduce(lambda u, v: np.multiply(u, v), seq, initial) diff --git a/docs/nodes/TRANSFORMERS/ARITHMETIC/SUBTRACT/a1-[autogen]/python_code.txt b/docs/nodes/TRANSFORMERS/ARITHMETIC/SUBTRACT/a1-[autogen]/python_code.txt index c25d22d56a..c6bda92cfb 100644 --- a/docs/nodes/TRANSFORMERS/ARITHMETIC/SUBTRACT/a1-[autogen]/python_code.txt +++ b/docs/nodes/TRANSFORMERS/ARITHMETIC/SUBTRACT/a1-[autogen]/python_code.txt @@ -1,6 +1,6 @@ import numpy as np from flojoy import flojoy, OrderedPair, Scalar, Vector -from nodes.TRANSFORMERS.ARITHMETIC.utils.arithmetic_utils import get_val +from flojoy_nodes.TRANSFORMERS.ARITHMETIC.utils.arithmetic_utils import get_val from functools import reduce @@ -9,6 +9,7 @@ def SUBTRACT( a: OrderedPair | Scalar | Vector, b: list[OrderedPair | Scalar | Vector] ) -> OrderedPair | Scalar | Vector: + initial = get_val(a) seq = map(lambda dc: get_val(dc), b) y = reduce(lambda u, v: np.subtract(u, v), seq, initial) diff --git a/docs/nodes/TRANSFORMERS/TYPE_CASTING/DF_2_ORDEREDTRIPLE/examples/EX1/app.txt b/docs/nodes/TRANSFORMERS/TYPE_CASTING/DF_2_ORDEREDTRIPLE/examples/EX1/app.txt index 5c18533fd3..9bbc024b53 100644 --- a/docs/nodes/TRANSFORMERS/TYPE_CASTING/DF_2_ORDEREDTRIPLE/examples/EX1/app.txt +++ b/docs/nodes/TRANSFORMERS/TYPE_CASTING/DF_2_ORDEREDTRIPLE/examples/EX1/app.txt @@ -1,13 +1,181 @@ { "rfInstance": { "nodes": [ + { + "width": 225, + "height": 226, + "id": "TABLE-15c58799-e8b5-4e2a-8da7-4e9b14da1669", + "type": "VISUALIZERS", + "data": { + "id": "TABLE-15c58799-e8b5-4e2a-8da7-4e9b14da1669", + "label": "TABLE", + "func": "TABLE", + "type": "VISUALIZERS", + "ctrls": {}, + "inputs": [ + { + "name": "default", + "id": "default", + "type": "OrderedTriple|OrderedPair|DataFrame|Matrix|Vector", + "multiple": false, + "desc": null + } + ], + "outputs": [ + { + "name": "default", + "id": "default", + "type": "Plotly", + "desc": null + } + ], + "path": "PYTHON/nodes/VISUALIZERS/PLOTLY/TABLE/TABLE.py", + "selected": false + }, + "position": { + "x": 15.697025265156128, + "y": 162.791309303586 + }, + "selected": false, + "positionAbsolute": { + "x": 15.697025265156128, + "y": 162.791309303586 + }, + "dragging": true + }, + { + "width": 225, + "height": 226, + "id": "TABLE-7324c275-2617-4256-b32d-c423d9df155e", + "type": "VISUALIZERS", + "data": { + "id": "TABLE-7324c275-2617-4256-b32d-c423d9df155e", + "label": "TABLE 1", + "func": "TABLE", + "type": "VISUALIZERS", + "ctrls": {}, + "inputs": [ + { + "name": "default", + "id": "default", + "type": "OrderedTriple|OrderedPair|DataFrame|Matrix|Vector", + "multiple": false, + "desc": null + } + ], + "outputs": [ + { + "name": "default", + "id": "default", + "type": "Plotly", + "desc": null + } + ], + "path": "PYTHON/nodes/VISUALIZERS/PLOTLY/TABLE/TABLE.py", + "selected": false + }, + "position": { + "x": 13.282464927359996, + "y": -117.46602364158025 + }, + "selected": false, + "positionAbsolute": { + "x": 13.282464927359996, + "y": -117.46602364158025 + }, + "dragging": true + }, + { + "width": 225, + "height": 226, + "id": "SCATTER3D-78ba1168-4a01-4e8a-bb0f-7e99def107c1", + "type": "VISUALIZERS", + "data": { + "id": "SCATTER3D-78ba1168-4a01-4e8a-bb0f-7e99def107c1", + "label": "SCATTER3D", + "func": "SCATTER3D", + "type": "VISUALIZERS", + "ctrls": {}, + "inputs": [ + { + "name": "default", + "id": "default", + "type": "OrderedTriple|DataFrame", + "multiple": false, + "desc": null + } + ], + "outputs": [ + { + "name": "default", + "id": "default", + "type": "Plotly", + "desc": null + } + ], + "path": "PYTHON/nodes/VISUALIZERS/PLOTLY/SCATTER3D/SCATTER3D.py", + "selected": false + }, + "position": { + "x": 387.833179116913, + "y": 14.32067485292606 + }, + "selected": false, + "positionAbsolute": { + "x": 387.833179116913, + "y": 14.32067485292606 + }, + "dragging": true + }, + { + "width": 225, + "height": 226, + "id": "SCATTER3D-7c4176bb-516e-43ff-ad01-ad792afe238f", + "type": "VISUALIZERS", + "data": { + "id": "SCATTER3D-7c4176bb-516e-43ff-ad01-ad792afe238f", + "label": "SCATTER3D 1", + "func": "SCATTER3D", + "type": "VISUALIZERS", + "ctrls": {}, + "inputs": [ + { + "name": "default", + "id": "default", + "type": "OrderedTriple|DataFrame", + "multiple": false, + "desc": null + } + ], + "outputs": [ + { + "name": "default", + "id": "default", + "type": "Plotly", + "desc": null + } + ], + "path": "PYTHON/nodes/VISUALIZERS/PLOTLY/SCATTER3D/SCATTER3D.py", + "selected": false + }, + "position": { + "x": 388.9118161388476, + "y": -300.82675939727517 + }, + "selected": false, + "positionAbsolute": { + "x": 388.9118161388476, + "y": -300.82675939727517 + }, + "dragging": true + }, { "width": 208, "height": 96, - "id": "R_DATASET-05d7349e-095e-4a58-9ac2-d019c8abcbae", + "id": "R_DATASET-3126c01d-b84a-46bd-8e9f-cd8763f479ff", "type": "GENERATORS", "data": { - "id": "R_DATASET-05d7349e-095e-4a58-9ac2-d019c8abcbae", + "id": "R_DATASET-3126c01d-b84a-46bd-8e9f-cd8763f479ff", "label": "R DATASET", "func": "R_DATASET", "type": "GENERATORS", @@ -98,16 +266,18 @@ "WorldPhones", "WWWusage" ], + "desc": null, "functionName": "R_DATASET", "param": "dataset_key", - "value": "iris" + "value": "airquality" } }, "outputs": [ { "name": "default", "id": "default", - "type": "DataFrame" + "type": "DataFrame", + "desc": "A DataContainer object containing the retrieved pandas DataFrame." } ], "pip_dependencies": [ @@ -120,103 +290,23 @@ "selected": false }, "position": { - "x": -338.7711900770852, - "y": 194.3183042659582 - }, - "selected": false, - "positionAbsolute": { - "x": -338.7711900770852, - "y": 194.3183042659582 - }, - "dragging": true - }, - { - "width": 380, - "height": 293, - "id": "TABLE-a1a64ba2-624d-4309-a3a6-581e496644a7", - "type": "VISUALIZERS", - "data": { - "id": "TABLE-a1a64ba2-624d-4309-a3a6-581e496644a7", - "label": "TABLE 1", - "func": "TABLE", - "type": "VISUALIZERS", - "ctrls": {}, - "inputs": [ - { - "name": "default", - "id": "default", - "type": "OrderedTriple|OrderedPair|DataFrame", - "multiple": false - } - ], - "outputs": [ - { - "name": "default", - "id": "default", - "type": "Plotly" - } - ], - "path": "PYTHON/nodes/VISUALIZERS/PLOTLY/TABLE/TABLE.py", - "selected": false - }, - "position": { - "x": 358.1790032359889, - "y": 27.327589114130035 + "x": -428.23010575909956, + "y": 78.13554210341013 }, "selected": false, "positionAbsolute": { - "x": 358.1790032359889, - "y": 27.327589114130035 - }, - "dragging": true - }, - { - "width": 380, - "height": 293, - "id": "TABLE-cb2c9e6a-e220-470e-a206-eda1820f9aa3", - "type": "VISUALIZERS", - "data": { - "id": "TABLE-cb2c9e6a-e220-470e-a206-eda1820f9aa3", - "label": "TABLE 1", - "func": "TABLE", - "type": "VISUALIZERS", - "ctrls": {}, - "inputs": [ - { - "name": "default", - "id": "default", - "type": "OrderedTriple|OrderedPair|DataFrame", - "multiple": false - } - ], - "outputs": [ - { - "name": "default", - "id": "default", - "type": "Plotly" - } - ], - "path": "PYTHON/nodes/VISUALIZERS/PLOTLY/TABLE/TABLE.py", - "selected": false - }, - "position": { - "x": -8.207108311715444, - "y": 293.30295471921596 - }, - "selected": false, - "positionAbsolute": { - "x": -8.207108311715444, - "y": 293.30295471921596 + "x": -428.23010575909956, + "y": 78.13554210341013 }, "dragging": true }, { "width": 160, "height": 160, - "id": "DF_2_ORDEREDTRIPLE-62a7516d-96b6-4546-8fb2-f0f8a538930a", + "id": "DF_2_ORDEREDTRIPLE-545cd14b-64b4-4e85-a0cf-b139e037c80a", "type": "TRANSFORMERS", "data": { - "id": "DF_2_ORDEREDTRIPLE-62a7516d-96b6-4546-8fb2-f0f8a538930a", + "id": "DF_2_ORDEREDTRIPLE-545cd14b-64b4-4e85-a0cf-b139e037c80a", "label": "DF 2 ORDEREDTRIPLE", "func": "DF_2_ORDEREDTRIPLE", "type": "TRANSFORMERS", @@ -227,7 +317,7 @@ "desc": null, "functionName": "DF_2_ORDEREDTRIPLE", "param": "x", - "value": 0 + "value": "5" }, "y": { "type": "int", @@ -235,7 +325,7 @@ "desc": null, "functionName": "DF_2_ORDEREDTRIPLE", "param": "y", - "value": 1 + "value": "4" }, "z": { "type": "int", @@ -243,7 +333,7 @@ "desc": null, "functionName": "DF_2_ORDEREDTRIPLE", "param": "z", - "value": 2 + "value": "3" } }, "inputs": [ @@ -263,48 +353,62 @@ "desc": null } ], - "path": "PYTHON/nodes\\TRANSFORMERS\\TYPE_CASTING\\DF_2_ORDEREDTRIPLE\\DF_2_ORDEREDTRIPLE.py", + "path": "PYTHON/nodes/TRANSFORMERS/TYPE_CASTING/DF_2_ORDEREDTRIPLE/DF_2_ORDEREDTRIPLE.py", "selected": false }, "position": { - "x": 22.290347003831585, - "y": 63.93602572915705 + "x": -192.70484538790708, + "y": -268.5141204459132 }, "selected": false, "positionAbsolute": { - "x": 22.290347003831585, - "y": 63.93602572915705 + "x": -192.70484538790708, + "y": -268.5141204459132 }, "dragging": true } ], "edges": [ { - "source": "R_DATASET-05d7349e-095e-4a58-9ac2-d019c8abcbae", + "source": "DF_2_ORDEREDTRIPLE-545cd14b-64b4-4e85-a0cf-b139e037c80a", + "sourceHandle": "default", + "target": "SCATTER3D-7c4176bb-516e-43ff-ad01-ad792afe238f", + "targetHandle": "default", + "id": "reactflow__edge-DF_2_ORDEREDTRIPLE-545cd14b-64b4-4e85-a0cf-b139e037c80adefault-SCATTER3D-7c4176bb-516e-43ff-ad01-ad792afe238fdefault" + }, + { + "source": "DF_2_ORDEREDTRIPLE-545cd14b-64b4-4e85-a0cf-b139e037c80a", + "sourceHandle": "default", + "target": "TABLE-7324c275-2617-4256-b32d-c423d9df155e", + "targetHandle": "default", + "id": "reactflow__edge-DF_2_ORDEREDTRIPLE-545cd14b-64b4-4e85-a0cf-b139e037c80adefault-TABLE-7324c275-2617-4256-b32d-c423d9df155edefault" + }, + { + "source": "R_DATASET-3126c01d-b84a-46bd-8e9f-cd8763f479ff", "sourceHandle": "default", - "target": "TABLE-cb2c9e6a-e220-470e-a206-eda1820f9aa3", + "target": "SCATTER3D-78ba1168-4a01-4e8a-bb0f-7e99def107c1", "targetHandle": "default", - "id": "reactflow__edge-R_DATASET-05d7349e-095e-4a58-9ac2-d019c8abcbaedefault-TABLE-cb2c9e6a-e220-470e-a206-eda1820f9aa3default" + "id": "reactflow__edge-R_DATASET-3126c01d-b84a-46bd-8e9f-cd8763f479ffdefault-SCATTER3D-78ba1168-4a01-4e8a-bb0f-7e99def107c1default" }, { - "source": "R_DATASET-05d7349e-095e-4a58-9ac2-d019c8abcbae", + "source": "R_DATASET-3126c01d-b84a-46bd-8e9f-cd8763f479ff", "sourceHandle": "default", - "target": "DF_2_ORDEREDTRIPLE-62a7516d-96b6-4546-8fb2-f0f8a538930a", + "target": "DF_2_ORDEREDTRIPLE-545cd14b-64b4-4e85-a0cf-b139e037c80a", "targetHandle": "default", - "id": "reactflow__edge-R_DATASET-05d7349e-095e-4a58-9ac2-d019c8abcbaedefault-DF_2_ORDEREDTRIPLE-62a7516d-96b6-4546-8fb2-f0f8a538930adefault" + "id": "reactflow__edge-R_DATASET-3126c01d-b84a-46bd-8e9f-cd8763f479ffdefault-DF_2_ORDEREDTRIPLE-545cd14b-64b4-4e85-a0cf-b139e037c80adefault" }, { - "source": "DF_2_ORDEREDTRIPLE-62a7516d-96b6-4546-8fb2-f0f8a538930a", + "source": "R_DATASET-3126c01d-b84a-46bd-8e9f-cd8763f479ff", "sourceHandle": "default", - "target": "TABLE-a1a64ba2-624d-4309-a3a6-581e496644a7", + "target": "TABLE-15c58799-e8b5-4e2a-8da7-4e9b14da1669", "targetHandle": "default", - "id": "reactflow__edge-DF_2_ORDEREDTRIPLE-62a7516d-96b6-4546-8fb2-f0f8a538930adefault-TABLE-a1a64ba2-624d-4309-a3a6-581e496644a7default" + "id": "reactflow__edge-R_DATASET-3126c01d-b84a-46bd-8e9f-cd8763f479ffdefault-TABLE-15c58799-e8b5-4e2a-8da7-4e9b14da1669default" } ], "viewport": { - "x": 606.4472645567363, - "y": 234.63130388602087, - "zoom": 0.9186369849831518 + "x": 288.30940064494604, + "y": 142.1324244694165, + "zoom": 0.5564820197494093 } }, "ctrlsManifest": [ diff --git a/docs/nodes/VISUALIZERS/PLOTLY/BAR/a1-[autogen]/python_code.txt b/docs/nodes/VISUALIZERS/PLOTLY/BAR/a1-[autogen]/python_code.txt index 503cb8bb09..296115e3a2 100644 --- a/docs/nodes/VISUALIZERS/PLOTLY/BAR/a1-[autogen]/python_code.txt +++ b/docs/nodes/VISUALIZERS/PLOTLY/BAR/a1-[autogen]/python_code.txt @@ -1,7 +1,7 @@ from flojoy import flojoy, OrderedPair, DataFrame, Matrix, Plotly, Vector import plotly.graph_objects as go import pandas as pd -from nodes.VISUALIZERS.template import plot_layout +from flojoy_nodes.VISUALIZERS.template import plot_layout import numpy as np diff --git a/docs/nodes/VISUALIZERS/PLOTLY/BIG_NUMBER/a1-[autogen]/python_code.txt b/docs/nodes/VISUALIZERS/PLOTLY/BIG_NUMBER/a1-[autogen]/python_code.txt index 646ea0e572..8fa08eb625 100644 --- a/docs/nodes/VISUALIZERS/PLOTLY/BIG_NUMBER/a1-[autogen]/python_code.txt +++ b/docs/nodes/VISUALIZERS/PLOTLY/BIG_NUMBER/a1-[autogen]/python_code.txt @@ -8,7 +8,7 @@ from flojoy import ( Vector, ) import plotly.graph_objects as go -from nodes.VISUALIZERS.template import plot_layout +from flojoy_nodes.VISUALIZERS.template import plot_layout MEMORY_KEY = "BIG_NUMBER_MEMORY_KEY" diff --git a/docs/nodes/VISUALIZERS/PLOTLY/COMPOSITE/a1-[autogen]/python_code.txt b/docs/nodes/VISUALIZERS/PLOTLY/COMPOSITE/a1-[autogen]/python_code.txt index ea60d3e2a0..dc8103f095 100644 --- a/docs/nodes/VISUALIZERS/PLOTLY/COMPOSITE/a1-[autogen]/python_code.txt +++ b/docs/nodes/VISUALIZERS/PLOTLY/COMPOSITE/a1-[autogen]/python_code.txt @@ -2,7 +2,7 @@ from flojoy import flojoy, OrderedPair, DataFrame, Matrix, Plotly, Vector import plotly.graph_objects as go import pandas as pd import numpy as np -from nodes.VISUALIZERS.template import plot_layout +from flojoy_nodes.VISUALIZERS.template import plot_layout from typing import Literal diff --git a/docs/nodes/VISUALIZERS/PLOTLY/HISTOGRAM/a1-[autogen]/python_code.txt b/docs/nodes/VISUALIZERS/PLOTLY/HISTOGRAM/a1-[autogen]/python_code.txt index 58a7d1e878..558d1d142e 100644 --- a/docs/nodes/VISUALIZERS/PLOTLY/HISTOGRAM/a1-[autogen]/python_code.txt +++ b/docs/nodes/VISUALIZERS/PLOTLY/HISTOGRAM/a1-[autogen]/python_code.txt @@ -1,12 +1,13 @@ import pandas as pd import plotly.graph_objects as go from flojoy import flojoy, OrderedPair, DataFrame, Matrix, Plotly, Vector -from nodes.VISUALIZERS.template import plot_layout +from flojoy_nodes.VISUALIZERS.template import plot_layout @flojoy def HISTOGRAM(default: OrderedPair | DataFrame | Matrix | Vector) -> Plotly: + layout = plot_layout(title="HISTOGRAM") fig = go.Figure(layout=layout) diff --git a/docs/nodes/VISUALIZERS/PLOTLY/IMAGE/a1-[autogen]/python_code.txt b/docs/nodes/VISUALIZERS/PLOTLY/IMAGE/a1-[autogen]/python_code.txt index c208d2a7ff..755313701e 100644 --- a/docs/nodes/VISUALIZERS/PLOTLY/IMAGE/a1-[autogen]/python_code.txt +++ b/docs/nodes/VISUALIZERS/PLOTLY/IMAGE/a1-[autogen]/python_code.txt @@ -1,7 +1,7 @@ from flojoy import flojoy, Image, Plotly import plotly.express as px import numpy as np -from nodes.VISUALIZERS.template import plot_layout +from flojoy_nodes.VISUALIZERS.template import plot_layout @flojoy diff --git a/docs/nodes/VISUALIZERS/PLOTLY/LINE/a1-[autogen]/python_code.txt b/docs/nodes/VISUALIZERS/PLOTLY/LINE/a1-[autogen]/python_code.txt index 88ed85e680..11c8d10ee5 100644 --- a/docs/nodes/VISUALIZERS/PLOTLY/LINE/a1-[autogen]/python_code.txt +++ b/docs/nodes/VISUALIZERS/PLOTLY/LINE/a1-[autogen]/python_code.txt @@ -2,12 +2,13 @@ from flojoy import flojoy, Plotly, OrderedPair, DataFrame, Matrix, Vector import numpy as np import plotly.graph_objects as go import pandas as pd -from nodes.VISUALIZERS.template import plot_layout +from flojoy_nodes.VISUALIZERS.template import plot_layout @flojoy def LINE(default: OrderedPair | DataFrame | Matrix | Vector) -> Plotly: + layout = plot_layout(title="LINE") fig = go.Figure(layout=layout) diff --git a/docs/nodes/VISUALIZERS/PLOTLY/SCATTER/a1-[autogen]/python_code.txt b/docs/nodes/VISUALIZERS/PLOTLY/SCATTER/a1-[autogen]/python_code.txt index 842bf687fd..5af5afb7c4 100644 --- a/docs/nodes/VISUALIZERS/PLOTLY/SCATTER/a1-[autogen]/python_code.txt +++ b/docs/nodes/VISUALIZERS/PLOTLY/SCATTER/a1-[autogen]/python_code.txt @@ -2,12 +2,13 @@ import numpy as np import pandas as pd import plotly.graph_objects as go from flojoy import DataFrame, Matrix, OrderedPair, Plotly, flojoy, Vector -from nodes.VISUALIZERS.template import plot_layout +from flojoy_nodes.VISUALIZERS.template import plot_layout @flojoy def SCATTER(default: OrderedPair | DataFrame | Matrix | Vector) -> Plotly: + layout = plot_layout(title="SCATTER") fig = go.Figure(layout=layout) match default: diff --git a/docs/nodes/VISUALIZERS/PLOTLY/SCATTER3D/a1-[autogen]/python_code.txt b/docs/nodes/VISUALIZERS/PLOTLY/SCATTER3D/a1-[autogen]/python_code.txt index ed5786af06..144dc3887a 100644 --- a/docs/nodes/VISUALIZERS/PLOTLY/SCATTER3D/a1-[autogen]/python_code.txt +++ b/docs/nodes/VISUALIZERS/PLOTLY/SCATTER3D/a1-[autogen]/python_code.txt @@ -1,7 +1,7 @@ import plotly.graph_objects as go import plotly.express as px from flojoy import OrderedTriple, DataFrame, Plotly, flojoy -from nodes.VISUALIZERS.template import plot_layout +from flojoy_nodes.VISUALIZERS.template import plot_layout @flojoy diff --git a/docs/nodes/VISUALIZERS/PLOTLY/SURFACE3D/a1-[autogen]/python_code.txt b/docs/nodes/VISUALIZERS/PLOTLY/SURFACE3D/a1-[autogen]/python_code.txt index e4744cb325..b75e7f2630 100644 --- a/docs/nodes/VISUALIZERS/PLOTLY/SURFACE3D/a1-[autogen]/python_code.txt +++ b/docs/nodes/VISUALIZERS/PLOTLY/SURFACE3D/a1-[autogen]/python_code.txt @@ -1,6 +1,6 @@ import plotly.graph_objects as go # type:ignore from flojoy import Plotly, OrderedTriple, DataFrame, flojoy, Surface, Matrix -from nodes.VISUALIZERS.template import plot_layout +from flojoy_nodes.VISUALIZERS.template import plot_layout import numpy as np diff --git a/docs/nodes/VISUALIZERS/PLOTLY/TABLE/a1-[autogen]/python_code.txt b/docs/nodes/VISUALIZERS/PLOTLY/TABLE/a1-[autogen]/python_code.txt index 72011e81bb..dca744dcf2 100644 --- a/docs/nodes/VISUALIZERS/PLOTLY/TABLE/a1-[autogen]/python_code.txt +++ b/docs/nodes/VISUALIZERS/PLOTLY/TABLE/a1-[autogen]/python_code.txt @@ -1,7 +1,7 @@ from flojoy import flojoy, OrderedPair, OrderedTriple, DataFrame, Vector, Plotly import plotly.graph_objects as go import pandas as pd -from nodes.VISUALIZERS.template import plot_layout +from flojoy_nodes.VISUALIZERS.template import plot_layout @flojoy From 343e689f2203688e4e6722e44eb09c283ee78ddd Mon Sep 17 00:00:00 2001 From: smahmed776 Date: Mon, 14 Aug 2023 09:30:52 +0000 Subject: [PATCH 2/3] update: Merge branch 'main' into mahbub-node-package --- .../LOADER/a1-[autogen]/python_code.txt | 2 +- .../a1-[autogen]/python_code.txt | 26 ++++++++----------- 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/docs/nodes/LOADERS/CLOUD_DATABASE/LOADER/a1-[autogen]/python_code.txt b/docs/nodes/LOADERS/CLOUD_DATABASE/LOADER/a1-[autogen]/python_code.txt index 0ee8125669..aaf0e5b6bc 100644 --- a/docs/nodes/LOADERS/CLOUD_DATABASE/LOADER/a1-[autogen]/python_code.txt +++ b/docs/nodes/LOADERS/CLOUD_DATABASE/LOADER/a1-[autogen]/python_code.txt @@ -15,7 +15,7 @@ def LOADER( measurement_id: Optional[str] = None, dc_id: Optional[str] = None, ) -> DataContainer: - api_key = get_env_var("FLOJOY_CLOUD_API_KEY") + api_key = get_env_var("FLOJOY_CLOUD_KEY") if api_key is None: raise KeyError("Frontier API key is not found!") diff --git a/docs/nodes/TRANSFORMERS/CALCULUS/DOUBLE_INDEFINITE_INTEGRAL/a1-[autogen]/python_code.txt b/docs/nodes/TRANSFORMERS/CALCULUS/DOUBLE_INDEFINITE_INTEGRAL/a1-[autogen]/python_code.txt index 48eb2e0b99..294bc19678 100644 --- a/docs/nodes/TRANSFORMERS/CALCULUS/DOUBLE_INDEFINITE_INTEGRAL/a1-[autogen]/python_code.txt +++ b/docs/nodes/TRANSFORMERS/CALCULUS/DOUBLE_INDEFINITE_INTEGRAL/a1-[autogen]/python_code.txt @@ -2,28 +2,24 @@ from flojoy import flojoy, OrderedTriple, Matrix import numpy as np +def contains_only_numbers(column, colName): + for i in range(0, len(column)): + if not isinstance(column.item(i), (int, float)): + raise ValueError( + f"The value {column.item(i)} in column {colName} is of type {type(column.item(i))}. The OrderedTriple need to contain only int or float values." + ) + + @flojoy def DOUBLE_INDEFINITE_INTEGRAL( default: OrderedTriple, width: int = 3, height: int = 3 ) -> Matrix: - def contains_only_numbers(column): - return all(isinstance(value, (np.int_, np.float_)) for value in column) - if np.divide(len(default.x), width) == height: - if not contains_only_numbers(default.x): - raise ValueError( - "There is some values that are not of type int or float. The OrderedTriple need to contain only int or float values." - ) - elif not contains_only_numbers(default.y): - raise ValueError( - "There is some values that are not of type int or float. The OrderedTriple need to contain only int or float values." - ) - elif not contains_only_numbers(default.z): - raise ValueError( - "There is some values that are not of type int or float. The OrderedTriple need to contain only int or float values." - ) + contains_only_numbers(default.x, "x") + contains_only_numbers(default.y, "y") + contains_only_numbers(default.z, "z") input_x = np.reshape(default.x, (height, width)) input_y = np.reshape(default.y, (height, width)) From 6d4d91acf2f3adb7005415461a7cfed454f2c4f5 Mon Sep 17 00:00:00 2001 From: smahmed776 Date: Mon, 14 Aug 2023 15:39:10 +0000 Subject: [PATCH 3/3] update: Merge branch 'main' into mahbub-node-package --- .../ARRAY_VIEW/a1-[autogen]/docstring.txt | 19 ++++---- .../MATRIX_VIEW/a1-[autogen]/docstring.txt | 20 ++++----- .../TEXT_VIEW/a1-[autogen]/docstring.txt | 17 ++++--- .../PLOTLY/BAR/a1-[autogen]/docstring.txt | 17 ++++--- .../BIG_NUMBER/a1-[autogen]/docstring.txt | 37 ++++++++------- .../COMPOSITE/a1-[autogen]/docstring.txt | 33 +++++++------- .../HISTOGRAM/a1-[autogen]/docstring.txt | 17 ++++--- .../PLOTLY/IMAGE/a1-[autogen]/docstring.txt | 17 ++++--- .../PLOTLY/LINE/a1-[autogen]/docstring.txt | 17 ++++--- .../a1-[autogen]/docstring.txt | 43 +++++++++--------- .../PROPHET_PLOT/a1-[autogen]/docstring.txt | 45 +++++++++---------- .../PLOTLY/SCATTER/a1-[autogen]/docstring.txt | 17 ++++--- .../SCATTER3D/a1-[autogen]/docstring.txt | 17 ++++--- .../SURFACE3D/a1-[autogen]/docstring.txt | 17 ++++--- .../PLOTLY/TABLE/a1-[autogen]/docstring.txt | 17 ++++--- 15 files changed, 168 insertions(+), 182 deletions(-) diff --git a/docs/nodes/VISUALIZERS/DATA_STRUCTURE/ARRAY_VIEW/a1-[autogen]/docstring.txt b/docs/nodes/VISUALIZERS/DATA_STRUCTURE/ARRAY_VIEW/a1-[autogen]/docstring.txt index d79b6f99e1..3bea08e934 100644 --- a/docs/nodes/VISUALIZERS/DATA_STRUCTURE/ARRAY_VIEW/a1-[autogen]/docstring.txt +++ b/docs/nodes/VISUALIZERS/DATA_STRUCTURE/ARRAY_VIEW/a1-[autogen]/docstring.txt @@ -1,13 +1,12 @@ - The ARRAY_VIEW node takes "OrderedPair", "DataFrame", "Matrix", and "Image" objects of DataContainer class as input -and displays its visualization in an array format. + and displays its visualization in an array format. -Inputs -------- -default : OrderedPair | DataFrame | Matrix | Image - the DataContainer to be visualized in an array format + Inputs + ------ + default : OrderedPair | DataFrame | Matrix | Image + the DataContainer to be visualized in an array format -Outputs -------- -Plotly - the DataContainer containing visualization of the input in an array format + Returns + ------- + Plotly + the DataContainer containing visualization of the input in an array format diff --git a/docs/nodes/VISUALIZERS/DATA_STRUCTURE/MATRIX_VIEW/a1-[autogen]/docstring.txt b/docs/nodes/VISUALIZERS/DATA_STRUCTURE/MATRIX_VIEW/a1-[autogen]/docstring.txt index 28ab7f6f07..4eebce32e4 100644 --- a/docs/nodes/VISUALIZERS/DATA_STRUCTURE/MATRIX_VIEW/a1-[autogen]/docstring.txt +++ b/docs/nodes/VISUALIZERS/DATA_STRUCTURE/MATRIX_VIEW/a1-[autogen]/docstring.txt @@ -1,12 +1,12 @@ - The MATRIX_VIEW node takes a Matrix or OrderedPair object of DataContainer class as input and -displays its visualization using a Plotly table in matrix format. + displays its visualization using a Plotly table in matrix format. + + Inputs + ------- + default : OrderedPair | Matrix + the DataContainer to be visualized in matrix format. -Inputs -------- -default : OrderedPair | Matrix - the DataContainer to be visualized in matrix format. -Outputs -------- -Plotly - the DataContainer containing visualization of the input in matrix format + Returns + ------- + Plotly + the DataContainer containing visualization of the input in matrix format diff --git a/docs/nodes/VISUALIZERS/DATA_STRUCTURE/TEXT_VIEW/a1-[autogen]/docstring.txt b/docs/nodes/VISUALIZERS/DATA_STRUCTURE/TEXT_VIEW/a1-[autogen]/docstring.txt index 0fe92f7f5b..8db9cc3153 100644 --- a/docs/nodes/VISUALIZERS/DATA_STRUCTURE/TEXT_VIEW/a1-[autogen]/docstring.txt +++ b/docs/nodes/VISUALIZERS/DATA_STRUCTURE/TEXT_VIEW/a1-[autogen]/docstring.txt @@ -1,12 +1,11 @@ - The TEXT_VIEW node creates a text visualization for a given TextBlob DataContainer type. -Inputs ------- -default : TextBlob - the DataContainer to be visualized in text format + Inputs + ------ + default : TextBlob + the DataContainer to be visualized in text format -Outputs -------- -TextBlob - the DataContainer containing text data + Returns + ------- + TextBlob + the DataContainer containing text data diff --git a/docs/nodes/VISUALIZERS/PLOTLY/BAR/a1-[autogen]/docstring.txt b/docs/nodes/VISUALIZERS/PLOTLY/BAR/a1-[autogen]/docstring.txt index d08405404d..50ef165cd6 100644 --- a/docs/nodes/VISUALIZERS/PLOTLY/BAR/a1-[autogen]/docstring.txt +++ b/docs/nodes/VISUALIZERS/PLOTLY/BAR/a1-[autogen]/docstring.txt @@ -1,12 +1,11 @@ - The BAR node creates a Plotly Bar visualization for a given input data container. -Inputs ------- -default : OrderedPair|DataFrame|Matrix|Vector - the DataContainer to be visualized in bar chart + Inputs + ------ + default : OrderedPair|DataFrame|Matrix|Vector + the DataContainer to be visualized in bar chart -Outputs -------- -Plotly - the DataContainer containing Plotly Bar chart visualization + Returns + ------- + Plotly + the DataContainer containing Plotly Bar chart visualization diff --git a/docs/nodes/VISUALIZERS/PLOTLY/BIG_NUMBER/a1-[autogen]/docstring.txt b/docs/nodes/VISUALIZERS/PLOTLY/BIG_NUMBER/a1-[autogen]/docstring.txt index f94e9e2fe4..3af43a98c4 100644 --- a/docs/nodes/VISUALIZERS/PLOTLY/BIG_NUMBER/a1-[autogen]/docstring.txt +++ b/docs/nodes/VISUALIZERS/PLOTLY/BIG_NUMBER/a1-[autogen]/docstring.txt @@ -1,23 +1,22 @@ - The BIG_NUMBER node generates a Plotly figure, displaying a big number with an optional prefix and suffix. -Inputs ------- -default : OrderedPair|Scalar|Vector - the DataContainer to be visualized + Inputs + ------ + default : OrderedPair|Scalar|Vector + the DataContainer to be visualized -Parameters ----------- -relative_delta : bool - whether to show relative delta from last run along with big number -suffix : str - any suffix to show with big number -prefix : str - any prefix to show with big number -title : str - title of the plot, default "BIG_NUMBER" + Parameters + ---------- + relative_delta : bool + whether to show relative delta from last run along with big number + suffix : str + any suffix to show with big number + prefix : str + any prefix to show with big number + title : str + title of the plot, default "BIG_NUMBER" -Outputs -------- -Plotly - the DataContainer containing Plotly big number visualization + Returns + ------- + Plotly + the DataContainer containing Plotly big number visualization diff --git a/docs/nodes/VISUALIZERS/PLOTLY/COMPOSITE/a1-[autogen]/docstring.txt b/docs/nodes/VISUALIZERS/PLOTLY/COMPOSITE/a1-[autogen]/docstring.txt index 8853ed3905..0209a48764 100644 --- a/docs/nodes/VISUALIZERS/PLOTLY/COMPOSITE/a1-[autogen]/docstring.txt +++ b/docs/nodes/VISUALIZERS/PLOTLY/COMPOSITE/a1-[autogen]/docstring.txt @@ -1,22 +1,21 @@ - The COMPOSITE node creates a combination of Plotly visualizations for a given input data container. -Inputs ------- -primary_trace : OrderedPair|DataFrame|Matrix|Vector - the DataContainer to be visualized as the first figure + Inputs + ------ + primary_trace : OrderedPair|DataFrame|Matrix|Vector + the DataContainer to be visualized as the first figure -secondary_trace : OrderedPair|DataFrame|Matrix|Vector - the DataContainer to be visualized as the second figure + secondary_trace : OrderedPair|DataFrame|Matrix|Vector + the DataContainer to be visualized as the second figure -Parameters ----------- -first_figure : 'bar' | 'line' | 'histogram' | 'scatter' - plotly type to display as the first figure, default is 'scatter' -second_figure : 'bar' | 'line' | 'histogram' | 'scatter' - plotly type to display as the second figure, default is 'line' + Parameters + ---------- + first_figure : 'bar' | 'line' | 'histogram' | 'scatter' + plotly type to display as the first figure, default is 'scatter' + second_figure : 'bar' | 'line' | 'histogram' | 'scatter' + plotly type to display as the second figure, default is 'line' -Outputs -------- -Plotly - the DataContainer containing Plotly visualization of both figures + Returns + ------- + Plotly + the DataContainer containing Plotly visualization of both figures diff --git a/docs/nodes/VISUALIZERS/PLOTLY/HISTOGRAM/a1-[autogen]/docstring.txt b/docs/nodes/VISUALIZERS/PLOTLY/HISTOGRAM/a1-[autogen]/docstring.txt index e07b0366bd..dd2b17b73d 100644 --- a/docs/nodes/VISUALIZERS/PLOTLY/HISTOGRAM/a1-[autogen]/docstring.txt +++ b/docs/nodes/VISUALIZERS/PLOTLY/HISTOGRAM/a1-[autogen]/docstring.txt @@ -1,12 +1,11 @@ - The HISTOGRAM node creates a Plotly Histogram visualization for a given input data container. -Inputs ------- -default : OrderedPair|DataFrame|Matrix|Vector - the DataContainer to be visualized + Inputs + ------ + default : OrderedPair|DataFrame|Matrix|Vector + the DataContainer to be visualized -Outputs -------- -Plotly - the DataContainer containing Plotly Histogram visualization + Returns + ------- + Plotly + the DataContainer containing Plotly Histogram visualization diff --git a/docs/nodes/VISUALIZERS/PLOTLY/IMAGE/a1-[autogen]/docstring.txt b/docs/nodes/VISUALIZERS/PLOTLY/IMAGE/a1-[autogen]/docstring.txt index 2af80fb3aa..115e446b1c 100644 --- a/docs/nodes/VISUALIZERS/PLOTLY/IMAGE/a1-[autogen]/docstring.txt +++ b/docs/nodes/VISUALIZERS/PLOTLY/IMAGE/a1-[autogen]/docstring.txt @@ -1,12 +1,11 @@ - The IMAGE node creates a Plotly Image visualization for a given input data container type of image. -Inputs ------- -default : Image - the DataContainer to be visualized + Inputs + ------ + default : Image + the DataContainer to be visualized -Outputs -------- -Plotly - the DataContainer containing Plotly Image visualization of the input image + Returns + ------- + Plotly + the DataContainer containing Plotly Image visualization of the input image diff --git a/docs/nodes/VISUALIZERS/PLOTLY/LINE/a1-[autogen]/docstring.txt b/docs/nodes/VISUALIZERS/PLOTLY/LINE/a1-[autogen]/docstring.txt index 6769734586..72ed8c43d5 100644 --- a/docs/nodes/VISUALIZERS/PLOTLY/LINE/a1-[autogen]/docstring.txt +++ b/docs/nodes/VISUALIZERS/PLOTLY/LINE/a1-[autogen]/docstring.txt @@ -1,12 +1,11 @@ - The LINE node creates a Plotly Line visualization for a given input data container. -Inputs ------- -default : OrderedPair|DataFrame|Matrix|Vector - the DataContainer to be visualized + Inputs + ------ + default : OrderedPair|DataFrame|Matrix|Vector + the DataContainer to be visualized -Outputs -------- -Plotly - the DataContainer containing Plotly Line visualization of the input data + Returns + ------- + Plotly + the DataContainer containing Plotly Line visualization of the input data diff --git a/docs/nodes/VISUALIZERS/PLOTLY/PROPHET_COMPONENTS/a1-[autogen]/docstring.txt b/docs/nodes/VISUALIZERS/PLOTLY/PROPHET_COMPONENTS/a1-[autogen]/docstring.txt index 62c786cb21..4c5c3868f3 100644 --- a/docs/nodes/VISUALIZERS/PLOTLY/PROPHET_COMPONENTS/a1-[autogen]/docstring.txt +++ b/docs/nodes/VISUALIZERS/PLOTLY/PROPHET_COMPONENTS/a1-[autogen]/docstring.txt @@ -1,30 +1,29 @@ - The PROPHET_COMPONENTS node plots the components of the prophet model trained in the PROPHET_PREDICT node. -This is the output plotly graph from the "plot_components_plotly" function from "prophet.plot". -It expects the trained Prophet model from the PROPHET_PREDICT node as input. + This is the output plotly graph from the "plot_components_plotly" function from "prophet.plot". + It expects the trained Prophet model from the PROPHET_PREDICT node as input. -If "run_forecast" was True in that node, the forecasted dataframe will be available in "m" attribute of default input. -Otherwise, this will make the predictions on the raw dataframe (in which case it will be the "m" attribute of default input). + If "run_forecast" was True in that node, the forecasted dataframe will be available in "m" attribute of default input. + Otherwise, this will make the predictions on the raw dataframe (in which case it will be the "m" attribute of default input). -You can tell if that forecasted dataframe is available via the "extra" field of data input - "run_forecast", (data.extra["run_forecast"]). + You can tell if that forecasted dataframe is available via the "extra" field of data input - "run_forecast", (data.extra["run_forecast"]). -Inputs ------- -default : DataFrame - the DataContainer to be visualized + Inputs + ------ + default : DataFrame + the DataContainer to be visualized -data : DataContainer - the DataContainer that holds prophet model and forecast data in the `extra` field + data : DataContainer + the DataContainer that holds prophet model and forecast data in the `extra` field -Parameters ----------- -periods : int - The number of periods out to predict. - Only used if the node passed into this node (i.e. PROPHET_PREDICT) did NOT return the forecast. - If the forecast was included in the DataContainer, this parameter will be ignored. default is 365 + Parameters + ---------- + periods : int + The number of periods out to predict. + Only used if the node passed into this node (i.e. PROPHET_PREDICT) did NOT return the forecast. + If the forecast was included in the DataContainer, this parameter will be ignored. default is 365 -Outputs -------- -Plotly - the DataContainer containing Plotly visualization of the prophet model + Returns + ------- + Plotly + the DataContainer containing Plotly visualization of the prophet model diff --git a/docs/nodes/VISUALIZERS/PLOTLY/PROPHET_PLOT/a1-[autogen]/docstring.txt b/docs/nodes/VISUALIZERS/PLOTLY/PROPHET_PLOT/a1-[autogen]/docstring.txt index 2b5ae1901a..e5fdbede6c 100644 --- a/docs/nodes/VISUALIZERS/PLOTLY/PROPHET_PLOT/a1-[autogen]/docstring.txt +++ b/docs/nodes/VISUALIZERS/PLOTLY/PROPHET_PLOT/a1-[autogen]/docstring.txt @@ -1,31 +1,30 @@ - The PROPHET_PLOT node plots the forecasted trend of the time series data that was passed in. -This is the output plotly graph from the "plot_plotly" function from "prophet.plot". -It expects as input the trained Prophet model from the PROPHET_PREDICT node. + This is the output plotly graph from the "plot_plotly" function from "prophet.plot". + It expects as input the trained Prophet model from the PROPHET_PREDICT node. - If "run_forecast" was True in that node, the forecasted dataframe will be available in "m" attribute of default input. -Otherwise, this will make the predictions on the raw dataframe (in which case it will be the "m" attribute of default input). + If "run_forecast" was True in that node, the forecasted dataframe will be available in "m" attribute of default input. + Otherwise, this will make the predictions on the raw dataframe (in which case it will be the "m" attribute of default input). -You can tell if that forecasted dataframe is available via the "extra" field of data input - "run_forecast", (data.extra["run_forecast"]). + You can tell if that forecasted dataframe is available via the "extra" field of data input - "run_forecast", (data.extra["run_forecast"]). -Inputs ------- -default : DataFrame - the DataContainer to be visualized + Inputs + ------ + default : DataFrame + the DataContainer to be visualized -data : DataContainer - the DataContainer that holds prophet model and forecast data in the `extra` field + data : DataContainer + the DataContainer that holds prophet model and forecast data in the `extra` field -Parameters ----------- -periods : int - The number of periods out to predict. - Only used if the node passed into this node (i.e. PROPHET_PREDICT) did NOT return the forecast. - If the forecast was included in the DataContainer, this parameter will be ignored. + Parameters + ---------- + periods : int + The number of periods out to predict. + Only used if the node passed into this node (i.e. PROPHET_PREDICT) did NOT return the forecast. + If the forecast was included in the DataContainer, this parameter will be ignored. - Default = 365 + Default = 365 -Outputs -------- -Plotly - the DataContainer containing Plotly visualization of the prophet model + Returns + ------- + Plotly + the DataContainer containing Plotly visualization of the prophet model diff --git a/docs/nodes/VISUALIZERS/PLOTLY/SCATTER/a1-[autogen]/docstring.txt b/docs/nodes/VISUALIZERS/PLOTLY/SCATTER/a1-[autogen]/docstring.txt index e0bad986fe..fdcc695131 100644 --- a/docs/nodes/VISUALIZERS/PLOTLY/SCATTER/a1-[autogen]/docstring.txt +++ b/docs/nodes/VISUALIZERS/PLOTLY/SCATTER/a1-[autogen]/docstring.txt @@ -1,12 +1,11 @@ - The SCATTER node creates a Plotly Scatter visualization for a given input data container. -Inputs ------- -default : OrderedPair|DataFrame|Matrix|Vector - the DataContainer to be visualized + Inputs + ------ + default : OrderedPair|DataFrame|Matrix|Vector + the DataContainer to be visualized -Outputs -------- -Plotly - the DataContainer containing Plotly Scatter visualization + Returns + ------- + Plotly + the DataContainer containing Plotly Scatter visualization diff --git a/docs/nodes/VISUALIZERS/PLOTLY/SCATTER3D/a1-[autogen]/docstring.txt b/docs/nodes/VISUALIZERS/PLOTLY/SCATTER3D/a1-[autogen]/docstring.txt index 9630b02c0f..130bd052e5 100644 --- a/docs/nodes/VISUALIZERS/PLOTLY/SCATTER3D/a1-[autogen]/docstring.txt +++ b/docs/nodes/VISUALIZERS/PLOTLY/SCATTER3D/a1-[autogen]/docstring.txt @@ -1,12 +1,11 @@ - The SCATTER3D node creates a Plotly 3D Scatter visualization for a given input data container. -Inputs ------- -default : OrderedTriple|DataFrame - the DataContainer to be visualized + Inputs + ------ + default : OrderedTriple|DataFrame + the DataContainer to be visualized -Outputs -------- -Plotly - the DataContainer containing Plotly 3D Scatter visualization + Returns + ------- + Plotly + the DataContainer containing Plotly 3D Scatter visualization diff --git a/docs/nodes/VISUALIZERS/PLOTLY/SURFACE3D/a1-[autogen]/docstring.txt b/docs/nodes/VISUALIZERS/PLOTLY/SURFACE3D/a1-[autogen]/docstring.txt index 65d2f96b64..7890bdb86a 100644 --- a/docs/nodes/VISUALIZERS/PLOTLY/SURFACE3D/a1-[autogen]/docstring.txt +++ b/docs/nodes/VISUALIZERS/PLOTLY/SURFACE3D/a1-[autogen]/docstring.txt @@ -1,13 +1,12 @@ - The SURFACE3D node creates a Plotly 3D Surface visualization for a given input data container. -Inputs ------- -default : OrderedTriple|DataFrame|Surface|Matrix - the DataContainer to be visualized + Inputs + ------ + default : OrderedTriple|DataFrame|Surface|Matrix + the DataContainer to be visualized -Outputs -------- -Plotly - the DataContainer containing Plotly 3D Surface visualization + Returns + ------- + Plotly + the DataContainer containing Plotly 3D Surface visualization diff --git a/docs/nodes/VISUALIZERS/PLOTLY/TABLE/a1-[autogen]/docstring.txt b/docs/nodes/VISUALIZERS/PLOTLY/TABLE/a1-[autogen]/docstring.txt index 280abaf070..4f748564e4 100644 --- a/docs/nodes/VISUALIZERS/PLOTLY/TABLE/a1-[autogen]/docstring.txt +++ b/docs/nodes/VISUALIZERS/PLOTLY/TABLE/a1-[autogen]/docstring.txt @@ -1,13 +1,12 @@ - The TABLE node creates a Plotly Table visualization for a given input data container. -Inputs ------- -default : OrderedTriple|OrderedPair|DataFrame|Vector - the DataContainer to be visualized + Inputs + ------ + default : OrderedTriple|OrderedPair|DataFrame|Vector + the DataContainer to be visualized -Outputs -------- -Plotly - the DataContainer containing Plotly Table visualization + Returns + ------- + Plotly + the DataContainer containing Plotly Table visualization