Skip to content

Commit

Permalink
(randSol) added 1e-6 to the feature accuracy bounds to handle numeric…
Browse files Browse the repository at this point in the history
…al instability error which occurred occasionally
  • Loading branch information
amkrajewski committed Oct 27, 2023
1 parent 1054ae5 commit b3ca142
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pysipfenn/tests/test_KS2022_randomSolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ def test_results(self):
self.descriptorMeanList,
self.labels):
with self.subTest(msg=f'{label} in BCC alloy'):
self.assertGreaterEqual(testValue, (0.98*descriptorMean)-descriptorRange)
self.assertLessEqual(testValue, (1.02*descriptorMean)+descriptorRange)
self.assertGreaterEqual(testValue, (0.98*descriptorMean)-descriptorRange-1e-6)
self.assertLessEqual(testValue, (1.02*descriptorMean)+descriptorRange+1e-6)

for field in ['diffHistory', 'propHistory', 'finalAtomsN', 'finalCompositionDistance']:
with self.subTest(msg=f'{field} present in meta'):
Expand Down

0 comments on commit b3ca142

Please sign in to comment.