Skip to content

Commit

Permalink
Carefully merged #710 and #749.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpivarski committed Oct 28, 2022
1 parent 79e9ef9 commit 0d18565
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions src/uproot/containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def _read_nested(
)
temp = forth_obj.add_node(
f"node{key}",
helper_obj.get_attrs(),
forth_stash.get_attrs(),
"i64",
1,
None,
Expand Down Expand Up @@ -543,7 +543,7 @@ def read(self, chunk, cursor, context, file, selffile, parent, header=True):
forth_stash.add_to_init(f"0 node{offsets_num}-offsets <- stack\n")
temp_form = forth_obj.add_node(
f"node{offsets_num}",
helper_obj.get_attrs(),
forth_stash.get_attrs(),
"i64",
0,
None,
Expand Down Expand Up @@ -781,7 +781,7 @@ def read(self, chunk, cursor, context, file, selffile, parent, header=True):
forth_obj.add_form(json.loads(temp_aform))
temp = forth_obj.add_node(
f"node{offsets_num}",
helper_obj.get_attrs(),
forth_stash.get_attrs(),
"i64",
1,
{},
Expand Down Expand Up @@ -859,7 +859,7 @@ def read(self, chunk, cursor, context, file, selffile, parent, header=True):
forth_obj.add_form(json.loads(temp_aform))
temp = forth_obj.add_node(
f"node{offsets_num}",
helper_obj.get_attrs(),
forth_stash.get_attrs(),
"i64",
1,
{},
Expand Down Expand Up @@ -1179,7 +1179,7 @@ def read(self, chunk, cursor, context, file, selffile, parent, header=True):
forth_stash.add_to_post("loop\n")
temp = forth_obj.add_node(
f"node{key}",
helper_obj.get_attrs(),
forth_stash.get_attrs(),
"i64",
1,
{},
Expand Down Expand Up @@ -1342,7 +1342,7 @@ def read(self, chunk, cursor, context, file, selffile, parent, header=True):
forth_stash.add_to_post("loop\n")
temp = forth_obj.add_node(
f"node{key}",
helper_obj.get_attrs(),
forth_stash.get_attrs(),
"i64",
1,
{},
Expand Down Expand Up @@ -1604,7 +1604,7 @@ def read(self, chunk, cursor, context, file, selffile, parent, header=True):
forth_obj.add_form(aform)
temp = forth_obj.add_node(
"nodeMap",
helper_obj.get_attrs(),
forth_stash.get_attrs(),
"i64",
1,
[keys_model["content"], values_model["content"]],
Expand Down
6 changes: 3 additions & 3 deletions src/uproot/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ def read(cls, chunk, cursor, context, file, selffile, parent, concrete=None):
if forth_stash is not None:
forth_obj.add_node(
"pass",
helper_obj.get_attrs(),
forth_stash.get_attrs(),
"i64",
1,
{},
Expand Down Expand Up @@ -859,7 +859,7 @@ def read(cls, chunk, cursor, context, file, selffile, parent, concrete=None):
if forth_stash is not None:
forth_obj.add_node(
"model828",
helper_obj.get_attrs(),
forth_stash.get_attrs(),
"i64",
1,
{},
Expand Down Expand Up @@ -1342,7 +1342,7 @@ def read(cls, chunk, cursor, context, file, selffile, parent, concrete=None):
forth_stash.add_to_pre(f"{bytes_skipped} stream skip \n")
forth_obj.add_node(
"Model1319",
helper_obj.get_attrs(),
forth_stash.get_attrs(),
"i64",
1,
{},
Expand Down
2 changes: 1 addition & 1 deletion src/uproot/models/TDatime.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def read_members(self, chunk, cursor, context, file):
forth_obj.add_form(temp_aform)
temp_form = forth_obj.add_node(
f"node{key}",
helper_obj.get_attrs(),
forth_stash.get_attrs(),
"i64",
0,
None,
Expand Down
2 changes: 1 addition & 1 deletion src/uproot/models/TObject.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def read_members(self, chunk, cursor, context, file):
forth_obj.add_form(json.loads(temp_aform))
forth_obj.add_node(
"TObjext",
helper_obj.get_attrs(),
forth_stash.get_attrs(),
"i64",
0,
{},
Expand Down
2 changes: 1 addition & 1 deletion src/uproot/models/TRef.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def read_members(self, chunk, cursor, context, file):
)
forth_obj.add_node(
f"node{form_keys[0]}",
helper_obj.get_attrs(),
forth_stash.get_attrs(),
"i64",
1,
None,
Expand Down
2 changes: 1 addition & 1 deletion src/uproot/models/TString.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def read_members(self, chunk, cursor, context, file):
forth_stash.add_to_init(f"0 node{offsets_num}-offsets <- stack\n")
temp_form = forth_obj.add_node(
f"node{offsets_num}",
helper_obj.get_attrs(),
forth_stash.get_attrs(),
"i64",
0,
None,
Expand Down

0 comments on commit 0d18565

Please sign in to comment.