mailr27104 - /trunk/pipe_control/structure/main.py


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

Header


Content

Posted by edward on December 12, 2014 - 10:52:
Author: bugman
Date: Fri Dec 12 10:52:24 2014
New Revision: 27104

URL: http://svn.gna.org/viewcvs/relax?rev=27104&view=rev
Log:
Fix for the displace_id and molecules arguments of the structure.align user 
function.

The atom ID used for the translations and rotations is now properly 
constructed from the molecule
names in the molecules list and the displace_id string.


Modified:
    trunk/pipe_control/structure/main.py

Modified: trunk/pipe_control/structure/main.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/pipe_control/structure/main.py?rev=27104&r1=27103&r2=27104&view=diff
==============================================================================
--- trunk/pipe_control/structure/main.py        (original)
+++ trunk/pipe_control/structure/main.py        Fri Dec 12 10:52:24 2014
@@ -158,8 +158,8 @@
         if molecules != None:
             if displace_id == None:
                 id = '#%s' % mol_name
-            elif not search('#', displace_id):
-                id = '#%s' % mol_name
+            elif search('#', displace_id):
+                id = displace_id
             else:
                 id = '#%s%s' % (mol_name, displace_id)
 




Related Messages


Powered by MHonArc, Updated Fri Dec 12 12:00:02 2014