ak.materialize#
Defined in awkward.operations.ak_materialize on line 12.
- ak.materialize(array, highlevel=True, behavior=None, attrs=None)#
- Parameters:
array – array_like An array with possible virtual buffers materialize.
highlevel (bool, default is True) – If True, return an
ak.Array
; otherwise, return a low-levelak.contents.Content
subclass.behavior (None or dict) – Custom
ak.behavior
for the output array, if high-level.attrs (None or dict) – Custom attributes for the output array, if high-level.
Traverses the input array and materializes any virtual buffers.
The buffers of the returned array are no longer VirtualArray
objects.
They will become either numpy.ndarray
or cupy.ndarray
objects depending on the array’s backend.
Possible inputs that will be traversed are instances of ak.Array
, ak.Record
, ak.contents.Content
, and ak.record.Record
.
All other types of inputs will be returned as is.