Skip to content

Commit

Permalink
(tests) small cleanup in all files
Browse files Browse the repository at this point in the history
  • Loading branch information
amkrajewski authored Mar 11, 2024
1 parent 8c863bf commit 27c59d7
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 34 deletions.
4 changes: 1 addition & 3 deletions pysipfenn/tests/test_AllCompatibleONNX_Ward2017.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,4 @@ def test_runtime(self):
c.runFromDirectory(directory=exampleInputsDir, descriptor='Ward2017')
print(c.get_resultDicts())
c.writeResultsToCSV('Ward2017-ONNX_testResults.csv')

if __name__ == '__main__':
unittest.main()

5 changes: 0 additions & 5 deletions pysipfenn/tests/test_Core_prototypeLibrary.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,3 @@ def test_customPrototypeLoad(self):

with self.subTest(msg="Restore the original prototype library"):
pysipfenn.overwritePrototypeLibrary(backup)





4 changes: 0 additions & 4 deletions pysipfenn/tests/test_KS2022.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,3 @@ def test_parallel(self):
'''
KS2022.profileParallel(test='JVASP-10001', nRuns=24)
KS2022.profileParallel(test='diluteNiAlloy', nRuns=24)


if __name__ == '__main__':
unittest.main()
4 changes: 0 additions & 4 deletions pysipfenn/tests/test_KS2022_dilute.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,3 @@ def test_parallel(self):
workers to speed up the execution.
'''
KS2022_dilute.profileParallel(test='diluteNiAlloy', nRuns=64)


if __name__ == '__main__':
unittest.main()
3 changes: 0 additions & 3 deletions pysipfenn/tests/test_KS2022_randomSolutions.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,3 @@ def test_serialInParallel(self):
def test_singleInParallel(self):
'''Tests parallel execution profiling works.'''
KS2022_randomSolutions.profile(test='BCC', nIterations=2)

if __name__ == '__main__':
unittest.main()
4 changes: 1 addition & 3 deletions pysipfenn/tests/test_Krajewski2020_NN9NN20NN24_ONNX.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,4 @@ def test_resutls(self):
for p, name, ref_mxnet in zip(c.predictions[0], toTest, referenceEnergies_MxNet):
with self.subTest(msg=f'Predicting vs MxNet with {name:<16}'):
self.assertAlmostEqual(p, ref_mxnet, places=6)

if __name__ == '__main__':
unittest.main()

4 changes: 0 additions & 4 deletions pysipfenn/tests/test_Ward2017.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,3 @@ def test_parallel(self):
'''
Ward2017.profileParallel(test='JVASP-10001', nRuns=24)
Ward2017.profileParallel(test='diluteNiAlloy', nRuns=24)


if __name__ == '__main__':
unittest.main()
4 changes: 0 additions & 4 deletions pysipfenn/tests/test_customModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,3 @@ def tearDown(self) -> None:
print('\nTearing down')
os.remove('MyFunNet.onnx')
print('Removed MyFunNet')


if __name__ == '__main__':
unittest.main()
4 changes: 0 additions & 4 deletions pysipfenn/tests/test_pysipfenn.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,3 @@ def test_descriptorCalculate_KS2022_randomSolution_parallel_multiple(self):
self.assertIn('finalAtomsN', meta)
self.assertIn('finalCompositionDistance', meta)
self.assertIn('finalComposition', meta)


if __name__ == '__main__':
unittest.main()

0 comments on commit 27c59d7

Please sign in to comment.