mailr25397 - /trunk/lib/periodic_table.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on August 28, 2014 - 17:35:
Author: bugman
Date: Thu Aug 28 17:35:28 2014
New Revision: 25397

URL: http://svn.gna.org/viewcvs/relax?rev=25397&view=rev
Log:
Fix for the recently introduced lib.periodic_table.isotope_to_mass_symbol() 
function.


Modified:
    trunk/lib/periodic_table.py

Modified: trunk/lib/periodic_table.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/lib/periodic_table.py?rev=25397&r1=25396&r2=25397&view=diff
==============================================================================
--- trunk/lib/periodic_table.py (original)
+++ trunk/lib/periodic_table.py Thu Aug 28 17:35:28 2014
@@ -50,10 +50,10 @@
     """
 
     # The mass number.
-    A = int(split('[A-Z]', id)[0])
+    A = int(split('[A-Z]', isotope)[0])
 
     # The atomic symbol.
-    symbol = process_symbol(split('[0-9]', id)[-1])
+    symbol = process_symbol(split('[0-9]', isotope)[-1])
 
     # Return the components.
     return A, symbol




Related Messages


Powered by MHonArc, Updated Thu Aug 28 17:40:02 2014