[cig-commits] [commit] inversion, master, validate_MT_params: Another bug fix for processchemistry.py (e47cb7b)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Fri Dec 12 18:26:05 PST 2014


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

On branches: inversion,master,validate_MT_params
Link       : https://github.com/geodynamics/burnman/compare/80c2a295c42dfdb38f83f6c1334bf7d8f97a8463...409647ff05dfad6a686198cac1481bd46b5e2e62

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

commit e47cb7ba0075ce95af00aebf849db11a6acd4347
Author: Bob Myhill <myhill.bob at gmail.com>
Date:   Wed Sep 3 17:07:14 2014 +0200

    Another bug fix for processchemistry.py


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

e47cb7ba0075ce95af00aebf849db11a6acd4347
 burnman/processchemistry.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/burnman/processchemistry.py b/burnman/processchemistry.py
index 033536a..e7de384 100644
--- a/burnman/processchemistry.py
+++ b/burnman/processchemistry.py
@@ -205,8 +205,10 @@ def ProcessSolidSolutionChemistry(formulae):
                     if len(element) == 1:
                         nel=1.
                     else: 
-                        nel=float(float(element[1])
-                    solution_formula[element[0]]=solution_formula.get(element[0], 0.0) + float(element[1])
+                        nel=float(float(element[1]))
+                    solution_formula[element[0]]=solution_formula.get(element[0], 0.0) + nel
+
+
 
         solution_formulae.append(solution_formula)
 



More information about the CIG-COMMITS mailing list