Author: semor Date: Thu Jan 10 22:38:09 2008 New Revision: 4619 URL: http://svn.gna.org/viewcvs/relax?rev=4619&view=rev Log: Modified the full_analysis.py script so it can handle cases when no residues need to be excluded. This change was proposed in a post at: https://mail.gna.org/public/relax-users/2008-01/msg00008.html (Message-id: <47868730.1030205@xxxxxxxxx>) Modified: 1.2/sample_scripts/full_analysis.py Modified: 1.2/sample_scripts/full_analysis.py URL: http://svn.gna.org/viewcvs/relax/1.2/sample_scripts/full_analysis.py?rev=4619&r1=4618&r2=4619&view=diff ============================================================================== --- 1.2/sample_scripts/full_analysis.py (original) +++ 1.2/sample_scripts/full_analysis.py Thu Jan 10 22:38:09 2008 @@ -116,7 +116,7 @@ ['NOE', '500', 500.208 * 1e6, 'noe.500.out'] ] -# The file containing the list of unresolved residues to exclude from the analysis. +# The file containing the list of unresolved residues to exclude from the analysis (set this to None if no residue is to be excluded). UNRES = 'unresolved' # The bond length and CSA values. @@ -557,7 +557,8 @@ relax_data.read(name, data[0], data[1], data[2], data[3]) # Unselect unresolved residues. - unselect.read(name, file=UNRES) + if not UNRES: + unselect.read(name, file=UNRES) # Copy the diffusion tensor from the run 'opt' and prevent it from being minimised. if not local_tm: