Skip to main content

Module elements

Module elements 

Source
Expand description

Decoding an ndarray’s bytes into typed elements, and inlining them back into the tree.

Inlining is what the ASDF Standard’s reference corpus asks a reader to do before comparing a .asdf file against its expected .yaml: turn every block-backed array into the nested sequences the expected output carries.

Enums§

Element
One decoded array element.

Functions§

decode_all
Decode every element of an array, in C order.
decode_inline
Decode an array whose data is inline in the tree rather than in a block.
element_node
Build a node holding an element, for tests and callers wanting one value.
format_float
Format a float the way libasdf’s emitter does.
inline_ndarray
Replace an ndarray’s source with the inline data it stands for.
nest
Build nested sequences for elements laid out in shape.
tagged
A node with a tag applied.