Skip to content

Commit

Permalink
Remove unreachable code (#23)
Browse files Browse the repository at this point in the history
* Remove redundant/uncalled block rename code from db3

* Improve formatting in assemblies.py
  • Loading branch information
youngmit committed Jan 31, 2020
1 parent 74eb539 commit 659fac5
Show file tree
Hide file tree
Showing 3 changed files with 146 additions and 116 deletions.
7 changes: 0 additions & 7 deletions armi/bookkeeping/db/database3.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,13 +850,6 @@ def load(self, cycle, node, cs=None, bp=None):
# assign params from blueprints
self._assignBlueprintsParams(bp, groupedComps)

# Re-assign names to assemblies and blocks based on the read-in assemnum. Should
# the name be a param?
for a in groupedComps[Assembly]:
name = a.makeNameFromAssemNum(a.p.assemNum)
a.name = name
a.renameBlocksAccordingToAssemblyNum()

# stitch together
self._compose(iter(comps), cs)

Expand Down

0 comments on commit 659fac5

Please sign in to comment.