Skip to content

← formatting package

CreateChunk

A chunk is a pairing of a data block (an N-dimensional array with named/typed axes) and a dictionary of descriptive properties.

This node constructs a chunk from these two pieces of data, each of which may be empty. The node can optionally emit None if the block is empty or None. Version 1.0.0

Ports/Properties

chunk

Output chunk.

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

block

Input block.

  • verbose name: Block
  • default value: None
  • port type: DataPort
  • value type: Block (can be None)
  • data direction: IN

props

Chunk properties.

  • verbose name: Props
  • default value: None
  • port type: DataPort
  • value type: dict (can be None)
  • data direction: IN

none_if_empty

Return None if the block is empty or None.

  • verbose name: None If Empty
  • default value: False
  • port type: BoolPort
  • value type: bool (can be None)

verbose

Enable verbose diagnostics output.

  • verbose name: Verbose
  • default value: False
  • port type: BoolPort
  • value type: bool (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)