Skip to content

Commit

Permalink
Update test suite with changes in AnStar lattice code. Test now passes
Browse files Browse the repository at this point in the history
  • Loading branch information
spxiwh committed Jun 23, 2015
1 parent e2f08ed commit 7978f72
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions test/data/stockAnstar3D.dat

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion test/test_tmpltbank.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,10 @@ def test_anstar_placement(self):
10, 0.03)
arrz = numpy.array(arrz)
stockGrid = numpy.loadtxt("%sstockAnstar3D.dat"%(self.dataDir))
diff = arrz - stockGrid
numpy.savetxt("new_example.dat", arrz)
errMsg = "Calculated lattice differs from that expected."
self.assertTrue(len(arrz) == len(stockGrid), msg=errMsg)
diff = arrz - stockGrid
self.assertTrue( not (diff > 1E-4).any(), msg=errMsg)

def test_get_mass_distribution(self):
Expand Down

0 comments on commit 7978f72

Please sign in to comment.