mailr25644 - /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:49:
Author: bugman
Date: Thu Sep  4 17:49:15 2014
New Revision: 25644

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

The command used was:
svn merge -r25625:25626 svn+ssh://bugman@xxxxxxxxxxx/svn/relax/trunk .

.....
  r25626 | bugman | 2014-09-04 15:35:36 +0200 (Thu, 04 Sep 2014) | 6 lines
  Changed paths:
     M /trunk/user_functions/__init__.py
  
  Created the user_functions.uf_translation_table list.
  
  The elements of this list are the names of user functions before and after 
a renaming.  The list is
  provided for backwards compatibility for relax scripts, though it is not 
used yet.
.....


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=25644&r1=25643&r2=25644&view=diff
==============================================================================
--- tags/3.3.0/user_functions/__init__.py       (original)
+++ tags/3.3.0/user_functions/__init__.py       Thu Sep  4 17:49:15 2014
@@ -145,3 +145,11 @@
 
     # Check the validity of the data.
     uf_info.validate()
+
+
+# A table of user function renamings - for script compatibility.
+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