Skip to content

Commit

Permalink
Add unit test for hexGrid pitch property.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgjarrett committed Feb 27, 2024
1 parent 89336dd commit 3109298
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions armi/reactor/grids/tests/test_grids.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,9 @@ def test_pointsUpFlatsUp(self):
self.assertEqual(tipsUp._unitSteps[0][0], 0.5)
self.assertAlmostEqual(flatsUp._unitSteps[0][0], 0.8660254037844388)

self.assertAlmostEqual(tipsUp.pitch, 1.0)
self.assertAlmostEqual(flatsUp.pitch, 1.0)

def test_triangleCoords(self):
g = grids.HexGrid.fromPitch(8.15)
indices1 = g.getIndicesFromRingAndPos(5, 3) + (0,)
Expand Down

0 comments on commit 3109298

Please sign in to comment.