NodeInfo#

class NodeInfo(node: Node)[source]#

Bases: object

Class that holds the additional information for a single node.

LabOne provides for each leaf node a dictionary of so called node info (In addition toolkit or the user may also add some information for selected nodes). This class wraps around these information and exposes them to a user in a friendly way.

During the initialization is fetches the relevant information from the root of the nodetree and stores them internally.

Parameters:

node (Node) – A node the information belong to.

Changed in version 0.5.0: Add support for signals in sample nodes. The daq module of LabOne supports subscribing to signals of samples nodes directly. They can be specified by appending them with a dot to the node path (e.g. /dev1234/demods/0/sample.x). The change now support these signals natively in the nodetree.

Methods

get_parser(value)

Parse the get value.

set_parser(value)

Parse the set value.

Attributes

T

alias of TypeVar('T')

contains_wildcards

Flag if the node contains wildcards.

description

Description of the node.

enum

Enum of the node options.

is_partial

Flag if the node is a partial node (non-leaf node).

is_setting

Flag if the node is setting node.

is_vector

Flag if the value of the node a vector.

options

Options of the node.

path

Path (LabOne representation) of the node.

readable

Flag if the node is readable.

type

Type of the node.

unit

Unit of the node.

writable

Flag if the node is writable.