Author: bugman Date: Thu Feb 18 18:24:33 2010 New Revision: 10753 URL: http://svn.gna.org/viewcvs/relax?rev=10753&view=rev Log: Fixes for STDOUT control in the auto_analyses.stereochem_analysis module. Modified: 1.3/auto_analyses/stereochem_analysis.py Modified: 1.3/auto_analyses/stereochem_analysis.py URL: http://svn.gna.org/viewcvs/relax/1.3/auto_analyses/stereochem_analysis.py?rev=10753&r1=10752&r2=10753&view=diff ============================================================================== --- 1.3/auto_analyses/stereochem_analysis.py (original) +++ 1.3/auto_analyses/stereochem_analysis.py Thu Feb 18 18:24:33 2010 @@ -118,6 +118,9 @@ def run(self): """Execute the given stage of the analysis.""" + # Store the original STDOUT. + self.stdout_orig = sys.stdout + # Sampling of snapshots. if self.stage == 1: self.sample() @@ -139,7 +142,7 @@ self.grace_plots() # Restore STDOUT. - sys.stdout = sys.__stdout__ + sys.stdout = self.stdout_orig def generate_distribution(self, values, lower=0.0, upper=200.0, inc=None):