mailr27076 - /trunk/lib/structure/internal/coordinates.py


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

Header


Content

Posted by edward on December 11, 2014 - 10:43:
Author: bugman
Date: Thu Dec 11 10:43:48 2014
New Revision: 27076

URL: http://svn.gna.org/viewcvs/relax?rev=27076&view=rev
Log:
More improvements for the structure ID strings returned by the 
assemble_coord_array() function.


Modified:
    trunk/lib/structure/internal/coordinates.py

Modified: trunk/lib/structure/internal/coordinates.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/lib/structure/internal/coordinates.py?rev=27076&r1=27075&r2=27076&view=diff
==============================================================================
--- trunk/lib/structure/internal/coordinates.py (original)
+++ trunk/lib/structure/internal/coordinates.py Thu Dec 11 10:43:48 2014
@@ -97,9 +97,11 @@
 
                     # Create a new structure ID.
                     if len(object_names) > 1 and model.num != None:
-                        ids.append('%s, %i, %s' % 
(object_names[struct_index], model.num, mol_name))
+                        ids.append('%s, model %i, %s' % 
(object_names[struct_index], model.num, mol_name))
                     elif len(object_names) > 1:
                         ids.append('%s, %s' % (object_names[struct_index], 
mol_name))
+                    elif model.num != None:
+                        ids.append('model %i, %s' % (model.num, mol_name))
                     else:
                         ids.append('%s' % mol_name)
 




Related Messages


Powered by MHonArc, Updated Thu Dec 11 11:00:03 2014