Author: bugman
Date: Thu Sep  4 17:13:38 2014
New Revision: 25641

URL: http://svn.gna.org/viewcvs/relax?rev=25641&view=rev
Log:
Converted the user_functions.uf_translation_table object to a dictionary.

This is for faster access which does not require looping.


Modified:
    trunk/user_functions/__init__.py

Modified: trunk/user_functions/__init__.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/user_functions/__init__.py?rev=25641&r1=25640&r2=25641&view=diff
==============================================================================
--- trunk/user_functions/__init__.py    (original)
+++ trunk/user_functions/__init__.py    Thu Sep  4 17:13:38 2014
@@ -148,8 +148,8 @@
 
 
 # A table of user function renamings - for script compatibility.
-uf_translation_table = [
-    ['calc', 'minimise.calculate'],
-    ['grid_search', 'minimise.grid_search'],
-    ['minimise', 'minimise.execute']
-]
+uf_translation_table = {
+    'calc': 'minimise.calculate',
+    'grid_search': 'minimise.grid_search',
+    'minimise': 'minimise.execute'
+}


_______________________________________________
relax (http://www.nmr-relax.com)

This is the relax-commits mailing list
[email protected]

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits

Reply via email to