Skip to content

Commit

Permalink
fix: recorrds -> records (#1088)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpivarski authored Jan 26, 2024
1 parent f6aa24f commit 9b02be8
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/uproot/models/RNTuple.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,14 +237,14 @@ def base_col_form(self, cr, col_id, parameters=None):
def col_form(self, field_id):
ak = uproot.extras.awkward()

if field_id in self._column_recorrds_dict:
rel_crs = self._column_recorrds_dict[field_id]["rel_crs"]
rel_crs_idxs = self._column_recorrds_dict[field_id]["rel_crs_idxs"]
if field_id in self._column_records_dict:
rel_crs = self._column_records_dict[field_id]["rel_crs"]
rel_crs_idxs = self._column_records_dict[field_id]["rel_crs_idxs"]
elif field_id in self._alias_columns_dict:
rel_crs = self._column_recorrds_dict[self._alias_columns_dict[field_id]][
rel_crs = self._column_records_dict[self._alias_columns_dict[field_id]][
"rel_crs"
]
rel_crs_idxs = self._column_recorrds_dict[
rel_crs_idxs = self._column_records_dict[
self._alias_columns_dict[field_id]
]["rel_crs_idxs"]
else:
Expand Down Expand Up @@ -460,17 +460,17 @@ def arrays(
el.field_id: el.physical_id
for i, el in enumerate(self.header.alias_columns)
}
self._column_recorrds_dict = {}
self._column_recorrds_dict = {
self._column_records_dict = {}
self._column_records_dict = {
el.field_id: {
"rel_crs": [
*(self._column_recorrds_dict.get(el.field_id) or {}).get(
*(self._column_records_dict.get(el.field_id) or {}).get(
"rel_crs", []
),
el,
],
"rel_crs_idxs": [
*(self._column_recorrds_dict.get(el.field_id) or {}).get(
*(self._column_records_dict.get(el.field_id) or {}).get(
"rel_crs_idxs", []
),
i,
Expand All @@ -492,7 +492,7 @@ def arrays(
for key in target_cols:
if "column" in key:
key_nr = int(key.split("-")[1])
if key_nr in self._column_recorrds_dict:
if key_nr in self._column_records_dict:
id = key_nr
elif key_nr in self._alias_columns_dict:
id = self._alias_columns_dict[key_nr]
Expand All @@ -503,7 +503,7 @@ def arrays(
)
)

dtype_byte = self._column_recorrds_dict[id]["rel_crs"][0].type
dtype_byte = self._column_records_dict[id]["rel_crs"][0].type
content = self.read_col_pages(
id, range(start_cluster_idx, stop_cluster_idx)
)
Expand Down

0 comments on commit 9b02be8

Please sign in to comment.