Author: bugman Date: Thu Jan 15 10:20:21 2009 New Revision: 8454 URL: http://svn.gna.org/viewcvs/relax?rev=8454&view=rev Log: Compacted some comments. Modified: branches/multi_structure/generic_fns/structure/scientific.py Modified: branches/multi_structure/generic_fns/structure/scientific.py URL: http://svn.gna.org/viewcvs/relax/branches/multi_structure/generic_fns/structure/scientific.py?rev=8454&r1=8453&r2=8454&view=diff ============================================================================== --- branches/multi_structure/generic_fns/structure/scientific.py (original) +++ branches/multi_structure/generic_fns/structure/scientific.py Thu Jan 15 10:20:21 2009 @@ -608,37 +608,22 @@ if verbosity: print model - # First add the peptide chains. + # First add the peptide chains (generating the molecule names and incrementing the molecule index). for mol in model.peptide_chains: - # Append the molecule. mol_conts[-1].append(mol) - - # The molecule name. self.target_mol_name(set=set_mol_name, target=new_mol_name, index=mol_index, mol_num=mol_index+1, file=file) - - # Increment the molecule index. mol_index = mol_index + 1 - # Then the nucleotide chains. + # Then the nucleotide chains (generating the molecule names and incrementing the molecule index). for mol in model.nucleotide_chains: - # Append the molecule. mol_conts[-1].append(mol) - - # The molecule name. self.target_mol_name(set=set_mol_name, target=new_mol_name, index=mol_index, mol_num=mol_index+1, file=file) - - # Increment the molecule index. mol_index = mol_index + 1 - # Finally all other molecules. + # Finally all other molecules (generating the molecule names and incrementing the molecule index). for key in model.molecules.keys(): - # Append the molecule. mol_conts[-1].append(model.molecules[key]) - - # The molecule name. self.target_mol_name(set=set_mol_name, target=new_mol_name, index=mol_index, mol_num=mol_index+1, file=file) - - # Increment the molecule index. mol_index = mol_index + 1 # Increment the model counter.