Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

[WIP] SCPI nodes - nodes PR:321 #430

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@

[//]: # (Custom component imports)

import DocString from '@site/src/components/DocString';
import PythonCode from '@site/src/components/PythonCode';
import AppDisplay from '@site/src/components/AppDisplay';
import SectionBreak from '@site/src/components/SectionBreak';
import AppendixSection from '@site/src/components/AppendixSection';

[//]: # (Docstring)

import DocstringSource from '!!raw-loader!./a1-[autogen]/docstring.txt';
import PythonSource from '!!raw-loader!./a1-[autogen]/python_code.txt';

<DocString>{DocstringSource}</DocString>
<PythonCode GLink='EXTRACTORS/DEBUGGING/DATACONTAINER_TYPE/DATACONTAINER_TYPE.py'>{PythonSource}</PythonCode>

<SectionBreak />



[//]: # (Examples)

## Examples

import Example1 from './examples/EX1/example.md';
import App1 from '!!raw-loader!./examples/EX1/app.json';



<AppDisplay
nodeLabel='DATACONTAINER_TYPE'
appImg={''}
outputImg={''}
>
{App1}
</AppDisplay>

<Example1 />

<SectionBreak />



[//]: # (Appendix)

import Notes from './appendix/notes.md';
import Hardware from './appendix/hardware.md';
import Media from './appendix/media.md';

## Appendix

<AppendixSection index={0} folderPath='nodes/EXTRACTORS/DEBUGGING/DATACONTAINER_TYPE/appendix/'><Notes /></AppendixSection>
<AppendixSection index={1} folderPath='nodes/EXTRACTORS/DEBUGGING/DATACONTAINER_TYPE/appendix/'><Hardware /></AppendixSection>
<AppendixSection index={2} folderPath='nodes/EXTRACTORS/DEBUGGING/DATACONTAINER_TYPE/appendix/'><Media /></AppendixSection>


Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from flojoy import flojoy, DataContainer, TextBlob


@flojoy()
def DATACONTAINER_TYPE(
default: DataContainer,
) -> TextBlob:


return TextBlob(text_blob=default.type)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This node does not require any peripheral hardware to operate. Please see INSTRUMENTS for nodes that interact with the physical world through connected hardware.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
No supporting screenshots, photos, or videos have been added to the media.md file for this node.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
No theory or technical notes have been contributed for this node yet.
Loading