Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Keckler <ckeckler@terrapower.com>
  • Loading branch information
john-science and keckler committed Feb 21, 2024
1 parent c1192c6 commit ee49383
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions armi/reactor/grids/hexagonal.py
Expand Up @@ -271,9 +271,9 @@ def _indicesAndEdgeFromRingAndPos(ring, position):
Parameters
----------
ring: int
ring : int
Starting with 1 (not zero), the ring of the grid cell.
position: int
position : int
Starting with 1 (not zero), the position of the grid cell, in the ring.
Returns
Expand Down Expand Up @@ -331,9 +331,9 @@ def getIndicesFromRingAndPos(ring: int, pos: int) -> IJType:
Parameters
----------
ring: int
ring : int
Starting with 1 (not zero), the ring of the grid cell.
position: int
position : int
Starting with 1 (not zero), the position of the grid cell, in the ring.
Returns
Expand Down
2 changes: 1 addition & 1 deletion armi/utils/asciimaps.py
Expand Up @@ -419,7 +419,7 @@ def _makeOffsets(self):

# renomalize the offsets to start at 0
minOffset = min(self.asciiOffsets)
for _li, (_, offset) in enumerate(zip(self.asciiLines, self.asciiOffsets)):
for offset in self.asciiOffsets:
newOffsets.append(offset - minOffset)
self.asciiOffsets = newOffsets

Expand Down

0 comments on commit ee49383

Please sign in to comment.