analyzer.core.columns¶
Attributes¶
Classes¶
str(object='') -> str |
|
Simple wrapper for a "path" in events. |
|
Functions¶
|
|
|
Set a potentially column in an array. |
|
Extract all columns from a potentially nested layout. |
|
|
|
Module Contents¶
- class analyzer.core.columns.EventBackend[source]¶
Bases:
str,enum.Enumstr(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to ‘strict’.
- class analyzer.core.columns.Column[source]¶
Simple wrapper for a “path” in events. Stores a single tuple representing the path to the desired field. Automatically converts “dot” delimited paths.
- analyzer.core.columns.setColumn(events: awkward.Array, column: Column, value: awkward.Array) awkward.Array[source]¶
Set a potentially column in an array. Automatically creates intermediate fields if needed.
- class analyzer.core.columns.ColumnCollection[source]¶
-
- intersect(other: ColumnCollection)[source]¶
- analyzer.core.columns.getAllColumns(events, cur_col=None, cur_depth=0, max_depth=None) set[Column][source]¶
Extract all columns from a potentially nested layout.
- class analyzer.core.columns.TrackedColumns[source]¶
-
- backend: EventBackend[source]¶
- updatedColumns(old, limit=None)[source]¶
Determine which in the current TrackedColumns have been updated from old by comparing their provenance.
- getKeyForColumns(columns)[source]¶
Get an excecution key for the column. Returns a hash dependent on the provenance of all the columns contains in the input.
- allowedInputs(columns: list[Column] | ColumnCollection)[source]¶
- allowedOutputs(columns: list[Column] | ColumnCollection)[source]¶