Author: bugman Date: Thu Nov 23 06:59:15 2006 New Revision: 2878 URL: http://svn.gna.org/viewcvs/relax?rev=2878&view=rev Log: Bug fix for the failure of model selection in the 'full_analysis.py' script. Because the 'run.delete()' user function had been removed the 'previous' run, which is a global model, was being included in the list of runs (m0, m1, m2, etc.) for model selection cause a failure. Modified: 1.3/sample_scripts/full_analysis.py Modified: 1.3/sample_scripts/full_analysis.py URL: http://svn.gna.org/viewcvs/relax/1.3/sample_scripts/full_analysis.py?rev=2878&r1=2877&r2=2878&view=diff ============================================================================== --- 1.3/sample_scripts/full_analysis.py (original) +++ 1.3/sample_scripts/full_analysis.py Thu Nov 23 06:59:15 2006 @@ -482,7 +482,7 @@ eliminate() # Model selection. - model_selection('AIC', run) + model_selection('AIC', run, runs=self.runs) # Write the results. if write_flag: @@ -494,14 +494,14 @@ # Set the run names (also the names of preset model-free models). if local_tm: - runs = ['tm0', 'tm1', 'tm2', 'tm3', 'tm4', 'tm5', 'tm6', 'tm7', 'tm8', 'tm9'] - else: - runs = ['m0', 'm1', 'm2', 'm3', 'm4', 'm5', 'm6', 'm7', 'm8', 'm9'] + self.runs = ['tm0', 'tm1', 'tm2', 'tm3', 'tm4', 'tm5', 'tm6', 'tm7', 'tm8', 'tm9'] + else: + self.runs = ['m0', 'm1', 'm2', 'm3', 'm4', 'm5', 'm6', 'm7', 'm8', 'm9'] # Nuclei type nuclei('N') - for name in runs: + for name in self.runs: # Create the run. run.create(name, 'mf')