Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

Commit

Permalink
clean up code in TblBranch
Browse files Browse the repository at this point in the history
  • Loading branch information
TaiSakuma committed Aug 27, 2017
1 parent ff396f1 commit 222230e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alphatwirl/heppyresult/TblBranch.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ def read(self, component):
tree = file.Get(self.treeName)

for leaf in tree.GetListOfLeaves():
branchName = leaf.GetName()
branch_entry = self._read_branch_entry(leaf)
branchName = branch_entry['name']
if not branchName in self.branchDict:
self.branchOrder.append(branchName)
branch_entry = self._read_branch_entry(leaf)
self.branchDict[branchName] = branch_entry
component_entry = self._read_component_entry(leaf)
component_entry['name'] = component.name
Expand Down

0 comments on commit 222230e

Please sign in to comment.