mailr25645 - /tags/3.3.0/user_functions/__init__.py


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

Header


Content

Posted by edward on September 04, 2014 - 17:52:
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://bugman@xxxxxxxxxxx/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'
+}




Related Messages


Powered by MHonArc, Updated Thu Sep 04 18:00:03 2014