mirror of
https://code.it4i.cz/sccs/easyconfigs-it4i.git
synced 2025-04-08 07:52:11 +01:00

new file: d/DFTB+/DFTB+-17.1_test_dptools.patch new file: d/DFTB+/DFTB+-19.1-intel-2020a-Py-3.7.eb new file: p/Py/Py-3.6.old.eb
15 lines
660 B
Diff
15 lines
660 B
Diff
* relax test for exact match, compare difference with predefined tolerance instead
|
|
author: Miguel Dias Costa (National University of Singapore)
|
|
--- test/tools/dptools/test_grids.py.orig 2017-10-27 14:16:30.679276000 +0800
|
|
+++ test/tools/dptools/test_grids.py 2017-10-27 14:17:28.896727649 +0800
|
|
@@ -39,7 +39,8 @@
|
|
)
|
|
gridcoords = grid.cartesian_to_gridcoord([1.9, -0.5, 1.5])
|
|
true_gridcoords = np.array([-1, 2, 9])
|
|
- self.assertTrue(np.all(gridcoords == true_gridcoords))
|
|
+ diff = np.max(np.abs(gridcoords - true_gridcoords))
|
|
+ self.assertLess(diff, FLOAT_TOLERANCE)
|
|
|
|
|
|
def test_get_corners_gridcoord(self):
|