uproot.interpretation.objects.ObjectArray

Defined in uproot.interpretation.objects on line 784.

class uproot.interpretation.objects.ObjectArray(model, branch, context, byte_offsets, byte_content, cursor_offset)
Parameters:
  • model (uproot.Model or uproot.containers.AsContainer) – The full Uproot deserialization model for the data.

  • branch (uproot.TBranch) – The TBranch from which the data are drawn.

  • context (dict) – Auxiliary data used in deserialization.

  • byte_offsets (array of numpy.int32) – Index where each entry of the byte_content starts and stops.

  • byte_content (array of numpy.uint8) – Raw but uncompressed data, directly from basket_array.

  • cursor_offset (int) – Correction to the integer keys used in refs for objects deserialized by reference (uproot.deserialization.read_object_any).

Temporary array filled by basket_array, which will be turned into a NumPy, Awkward, or other array, depending on the specified uproot.interpretation.library.Library.

model

ObjectArray.model

The full Uproot deserialization model for the data (uproot.Model or uproot.containers.AsContainer).

branch

ObjectArray.branch

The TBranch from which the data are drawn.

context

ObjectArray.context

Auxiliary data used in deserialization (dict).

byte_offsets

ObjectArray.byte_offsets

Index where each entry of the byte_content starts and stops.

byte_content

ObjectArray.byte_content

Raw but uncompressed data, directly from basket_array.

cursor_offset

ObjectArray.cursor_offset

Correction to the integer keys used in refs for objects deserialized by reference (uproot.deserialization.read_object_any).

to_numpy

ObjectArray.to_numpy()

Convert this ObjectArray into a NumPy dtype="O" (object) array.