Author: bugman Date: Wed Apr 9 11:10:34 2008 New Revision: 5481 URL: http://svn.gna.org/viewcvs/relax?rev=5481&view=rev Log: Updated the MoleculeContainer.__repr__() method. Modified: 1.3/data/mol_res_spin.py Modified: 1.3/data/mol_res_spin.py URL: http://svn.gna.org/viewcvs/relax/1.3/data/mol_res_spin.py?rev=5481&r1=5480&r2=5481&view=diff ============================================================================== --- 1.3/data/mol_res_spin.py (original) +++ 1.3/data/mol_res_spin.py Wed Apr 9 11:10:34 2008 @@ -361,9 +361,14 @@ # Residue list. if name == 'res': text = text + " res: The list of the residues of the molecule\n" - - # Skip certain objects. - if match("^_", name) or name == 'res': + continue + + # Skip the MoleculeContainer methods. + if name == 'is_empty': + continue + + # Skip special objects. + if match("^__", name): continue # Add the object's attribute to the text string.