Superclass of type nodes that describe a low-level data type or “form”. Unlike the high-level type (see ak.type), there is an exact one-to-one relationship between each ak.layout.Content class (see ak.Array.layout) and each Form.
Forms are rendered as JSON strings, the same JSON that can be used to construct them.
The type subclasses are listed below.
All ak.forms.Form instances have the following properties and methods in common.
String representation of the form, which is pretty, non-verbose #ak.forms.Form.tojson.
- ak.forms.Form.tojson(pretty, verbose)¶
Converts to a JSON string. If
pretty (bool), it will be multi-line and indented;
verbose, all fields will be shown, even defaults.
The single high-level type associated with this low-level form. Conversion in the
other direction is not unique.
typestrs is a dict of
__record__ to type-string
names (see Custom type names).
Returns the parameters associated with this form.