Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions EXTRACTORS/DEBUGGING/DATACONTAINER_TYPE/DATACONTAINER_TYPE.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from flojoy import flojoy, DataContainer, TextBlob


@flojoy()
def DATACONTAINER_TYPE(
default: DataContainer,
) -> TextBlob:
"""The DATACONTAINER_TYPE node returns a TextBlob containing the input DataContainer type (e.g. Vector).

Must use the TEXT_VIEW node to view the text.

Returns
-------
DataContainer
TextBlob: Input DataContainer type
"""

return TextBlob(text_blob=default.type)
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import numpy as np
from flojoy import Vector


def test_DATACONTAINER_TYPE(mock_flojoy_decorator):
import DATACONTAINER_TYPE

input = Vector(v=np.arange(0, 50))
res = DATACONTAINER_TYPE.DATACONTAINER_TYPE(input)

assert res.text_blob == "Vector"
Binary file added EXTRACTORS/DEBUGGING/DATACONTAINER_TYPE/app.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading