Skip to content

← programming package

PacketIterator

Iterate over the chunks and their names in a Packet.

On each successive update this node will then output a two-element list holding the chunk name and the chunk object at a time, until the packet is exhausted. Version 0.9.0

Ports/Properties

data

Packet to iterate over.

verbose name
Data
default value
None
port type
DataPort
value type
Packet (can be None)
data direction
IN

curname

Current name.

verbose name
Curname
default value
None
port type
DataPort
value type
str (can be None)
data direction
OUT

curchunk

Current chunk.

verbose name
Curchunk
default value
None
port type
DataPort
value type
Chunk (can be None)
data direction
OUT

nonempty

Only include chunks with non-empty data. This refers to whether the n-dimensional array in the chunk's block is empty, and does not relate to properties.

verbose name
Nonempty
default value
False
port type
BoolPort
value type
bool (can be None)

with_axes

Only include chunks that have all of these axes.

verbose name
Only If Axes Present
default value
[]
port type
SubsetPort
value type
list (can be None)

with_flags

Only include chunks that have all of these flags.

verbose name
Only If Flags Present
default value
[]
port type
SubsetPort
value type
list (can be None)

without_flags

Only include chunks that have none of these flags.

verbose name
Only If Flags Absent
default value
[]
port type
SubsetPort
value type
list (can be None)

name_matches

Only include chunks whose name matches this wildcard pattern. May include '*' and '?'. If this starts with 're:', the remainder of the string is interpreted as a regular expression.

verbose name
Name Matches
default value
port type
StringPort
value type
str (can be None)

set_breakpoint

Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.

verbose name
Set Breakpoint (Debug Only)
default value
False
port type
BoolPort
value type
bool (can be None)

metadata

User-definable meta-data associated with the node. Usually reserved for technical purposes.

verbose name
Metadata
default value
{}
port type
DictPort
value type
dict (can be None)

verbose

Whether to print the current item to the console.

verbose name
Verbose
default value
False
port type
BoolPort
value type
bool (can be None)