Author: bugman
Date: Thu Sep  4 17:52:42 2014
New Revision: 25645

URL: http://svn.gna.org/viewcvs/relax?rev=25645&view=rev
Log:
Ported r25641 from trunk to provide for catching of old user function calls.

The command used was:
svn merge -r25640:25641 svn+ssh://[email protected]/svn/relax/trunk .

.....
  r25641 | bugman | 2014-09-04 17:13:38 +0200 (Thu, 04 Sep 2014) | 5 lines
  Changed paths:
     M /trunk/user_functions/__init__.py
  
  Converted the user_functions.uf_translation_table object to a dictionary.
  
  This is for faster access which does not require looping.
.....


Modified:
    tags/3.3.0/user_functions/__init__.py

Modified: tags/3.3.0/user_functions/__init__.py
URL: 
http://svn.gna.org/viewcvs/relax/tags/3.3.0/user_functions/__init__.py?rev=25645&r1=25644&r2=25645&view=diff
==============================================================================
--- tags/3.3.0/user_functions/__init__.py       (original)
+++ tags/3.3.0/user_functions/__init__.py       Thu Sep  4 17:52:42 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