File: test_tolerance.patch

package info (click to toggle)
pymatgen 2025.2.18%2Bdfsg1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 85,888 kB
  • sloc: python: 176,173; javascript: 780; makefile: 221; sh: 78
file content (26 lines) | stat: -rw-r--r-- 1,440 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Index: pymatgen/tests/analysis/test_quasi_harmonic_debye_approx.py
===================================================================
--- pymatgen.orig/tests/analysis/test_quasi_harmonic_debye_approx.py	2025-02-20 11:41:32.455262668 +0100
+++ pymatgen/tests/analysis/test_quasi_harmonic_debye_approx.py	2025-02-20 11:41:32.451262190 +0100
@@ -125,7 +125,7 @@
 
     def test_thermal_conductivity(self):
         kappa = self.qhda.thermal_conductivity(self.T, self.opt_vol)
-        assert_allclose(kappa, 131.736242, atol=1e-1)
+        assert_allclose(kappa, 131.736242, rtol=1e-2)
 
     def test_vibrational_internal_energy(self):
         u = self.qhda.vibrational_internal_energy(self.T, self.opt_vol)
Index: pymatgen/tests/analysis/test_eos.py
===================================================================
--- pymatgen.orig/tests/analysis/test_eos.py	2025-02-20 11:41:32.455262668 +0100
+++ pymatgen/tests/analysis/test_eos.py	2025-02-20 11:41:32.451262190 +0100
@@ -426,7 +426,7 @@
         assert_allclose(self.num_eos_fit.e0, -10.84749, atol=1e-3)
         assert_allclose(self.num_eos_fit.v0, 40.857201, atol=1e-1)
         assert_allclose(self.num_eos_fit.b0, 0.55, atol=1e-2)
-        assert_allclose(self.num_eos_fit.b0_GPa, 89.0370727, atol=1e-1)
+        assert_allclose(self.num_eos_fit.b0_GPa, 89.0370727, atol=1e-0)
         assert_allclose(self.num_eos_fit.b1, 4.344039, atol=1e-2)
 
     def test_eos_func(self):