Skip to content

DATACONTAINER_TYPE

Return a String containing the input DataContainer type (e.g. Vector). Must use the TEXT_VIEW block to view the text. Params: default : DataContainer The input DataContainer to check the type. Returns: out : DataContainer String: Input DataContainer type
Python Code
from flojoy import DataContainer, String, flojoy


@flojoy()
def DATACONTAINER_TYPE(
    default: DataContainer,
) -> String:
    """Return a String containing the input DataContainer type (e.g. Vector).

    Must use the TEXT_VIEW block to view the text.

    Parameters
    ----------
    default : DataContainer
        The input DataContainer to check the type.

    Returns
    -------
    DataContainer
        String: Input DataContainer type
    """

    return String(s=default.type)

Find this Flojoy Block on GitHub

Example

Having problems with this example app? Join our Discord community and we will help you out!
React Flow mini map