uproot.interpretation.custom.CustomInterpretation
Defined in uproot.interpretation.custom on line 19.
Inheritance order: |
|---|
- class uproot.interpretation.custom.CustomInterpretation(branch: TBranch, context: dict, simplify: bool)
match_branch
- classmethod CustomInterpretation.match_branch(branch: TBranch, context: dict, simplify: bool) bool
- Parameters:
branch (uproot.TBranch) – The
TBranchto interpret as an array.context (dict) – Auxiliary data used in deserialization.
simplify (bool) – If True, call simplify on any uproot.AsObjects to try to get a more efficient interpretation.
Accept arguments from uproot.interpretation.identify.interpretation_of, determine whether this interpretation can be applied to the given branch.
cache_key
Inherited from uproot.interpretation.Interpretation.
- CustomInterpretation.cache_key
The cache key of the interpretation.
typename
Inherited from uproot.interpretation.Interpretation.
- CustomInterpretation.typename
The name of the type of the interpretation.
numpy_dtype
Inherited from uproot.interpretation.Interpretation.
- CustomInterpretation.numpy_dtype
The
numpy.dtypeto use to put objects of this type in a NumPy array.
awkward_form
Inherited from uproot.interpretation.Interpretation.
- CustomInterpretation.awkward_form(file, context=None, index_format='i64', header=False, tobject_header=False, breadcrumbs=())
- Parameters:
file (uproot.ReadOnlyFile) – File to use to generate uproot.Model classes from its streamers and
file_pathfor error messages.context (dict) – Context for the Form-generation; defaults are the remaining arguments below.
index_format (str) – Format to use for indexes of the
awkward.forms.Form; may be"i32","u32", or"i64".header (bool) – If True, include header fields of each C++ class.
tobject_header (bool) – If True, include header fields of each
TObjectbase class.breadcrumbs (tuple of class objects) – Used to check for recursion. Types that contain themselves cannot be Awkward Arrays because the depth of instances is unknown.
The
awkward.forms.Formto use to put objects of type type in an Awkward Array.
basket_array
Inherited from uproot.interpretation.Interpretation.
- CustomInterpretation.basket_array(data, byte_offsets, basket, branch, context, cursor_offset, library, interp_options)
- Parameters:
data (array of
numpy.uint8) – Raw but uncompressed data from theTBasket. If theTBaskethas offsets and navigational metadata, it is not included in this array.byte_offsets (array of
numpy.int32) – Index where each entry of theTBasketstarts and stops. The header is not included (i.e. the first offset is0), and the length of this array is one greater than the number of entries in theTBasket.basket (uproot.models.TBasket.Model_TBasket) – The
TBasketobject.context (dict) – Auxiliary data used in deserialization.
cursor_offset (int) – Correction to the integer keys used in refs for objects deserialized by reference (uproot.deserialization.read_object_any).
library (uproot.interpretation.library.Library) – The requested library for output.
interp_options (dict) – Flags and other options passed through the interpretation process.
Performs the first step of interpretation, from uncompressed
TBasketdata to a temporary array.
final_array
Inherited from uproot.interpretation.Interpretation.
- CustomInterpretation.final_array(basket_arrays, entry_start, entry_stop, entry_offsets, library, branch, options)
Concatenate the arrays from the baskets and return the final array.
hook_before_basket_array
Inherited from uproot.interpretation.Interpretation.
- CustomInterpretation.hook_before_basket_array(*args, **kwargs)
Called in basket_array, before any interpretation.
This is the first hook called in basket_array.
hook_after_basket_array
Inherited from uproot.interpretation.Interpretation.
- CustomInterpretation.hook_after_basket_array(*args, **kwargs)
Called in basket_array, after all interpretation.
This is the last hook called in basket_array.
hook_before_final_array
Inherited from uproot.interpretation.Interpretation.
- CustomInterpretation.hook_before_final_array(*args, **kwargs)
Called in final_array, before any trimming, finalization, or grouping.
This is the first hook called in final_array.
hook_before_library_finalize
Inherited from uproot.interpretation.Interpretation.
- CustomInterpretation.hook_before_library_finalize(*args, **kwargs)
Called in final_array, after trimming but before calling the finalize routine.
hook_after_final_array
Inherited from uproot.interpretation.Interpretation.
- CustomInterpretation.hook_after_final_array(*args, **kwargs)
Called in final_array, after all trimming, finalization, and grouping.
This is the last hook called in final_array.