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)
_______________________________________________
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