[cig-commits] [commit] master: Fixed broken partitioning test (4e12807)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Fri Dec 12 16:47:19 PST 2014


Repository : https://github.com/geodynamics/burnman

On branch  : master
Link       : https://github.com/geodynamics/burnman/compare/498861c40268a2c440d99f9ba62ccc5ab2a79dfa...1d2396e3c9d632ea6c4c7f8cbc61788c9e87ff80

>---------------------------------------------------------------

commit 4e128077b4c490fd42db936fb908f641e852e5b0
Author: I <kmanunterborn at gmail.com>
Date:   Fri Dec 12 16:28:10 2014 -0800

    Fixed broken partitioning test
    
    partitioning was broken, now it’s fixed.


>---------------------------------------------------------------

4e128077b4c490fd42db936fb908f641e852e5b0
 tests/test_partitioning.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/test_partitioning.py b/tests/test_partitioning.py
index b35a3d4..cb900f7 100644
--- a/tests/test_partitioning.py
+++ b/tests/test_partitioning.py
@@ -21,12 +21,12 @@ class test(BurnManTest):
 
         #P,T,a,b,frac_mol_pv,frac_mol_mw    = part_coef_calc(inp2,StartP,EndP,deltaP)
  
-        gt = lambda p: burnman.geotherm.brown_shankland(p)
+        gt = lambda p: burnman.geotherm.anderson(p)
         pressure = StartP
         temperature = gt([StartP])[0]
         (a,b) = burnman.calculate_partition_coefficient(pressure, temperature, rel_mol_per, 0.5)
-        self.assertFloatEqual(a, 0.14347274523)
-        self.assertFloatEqual(b, 0.108980503625)
+        self.assertFloatEqual(a, 0.0319126180713)
+        self.assertFloatEqual(b, 0.125395826369)
         
 
 



More information about the CIG-COMMITS mailing list