[cig-commits] [commit] add_thermodynamic_potentials: Corrected HP2011 data parsing (1703b69)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Tue Dec 9 09:53:37 PST 2014


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

On branch  : add_thermodynamic_potentials
Link       : https://github.com/geodynamics/burnman/compare/2e5646d93cedbbf8eae54cc37cffc14e0aa85180...d5ddad03ff9f30f5a4efaddb4e3ec585ea1a7c51

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

commit 1703b6935dd2727cd5ebe2aca34ca049925c97f0
Author: Bob Myhill <myhill.bob at gmail.com>
Date:   Thu Aug 28 01:54:35 2014 +0200

    Corrected HP2011 data parsing


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

1703b6935dd2727cd5ebe2aca34ca049925c97f0
 burnman/HPdata_to_burnman.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/burnman/HPdata_to_burnman.py b/burnman/HPdata_to_burnman.py
index 6f91870..78c9052 100644
--- a/burnman/HPdata_to_burnman.py
+++ b/burnman/HPdata_to_burnman.py
@@ -56,6 +56,8 @@ formula='0'
 for i in range(int(ds[0][0])):
     mbr=ds[i*4+3][0]
     M=getmbr(ds,mbr)
+    if mbr == 'and': # change silly abbreviation
+        mbr = 'andalusite'
     if M.flag != -1 and M.flag != -2 and M.k[0] > 0:
         print 'class', mbr, '(Mineral):'
         print '    """'



More information about the CIG-COMMITS mailing list