1+
2+
13<!DOCTYPE html>
24< html class ="writer-html5 " lang ="en " data-content_root ="../../../ ">
35< head >
46 < meta charset ="utf-8 " />
57 < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
6- < title > diffpy.pdffit2.output — diffpy.pdffit2 1.4.4rc4 documentation</ title >
7- < link rel ="stylesheet " type ="text/css " href ="../../../_static/pygments.css?v=fa44fd50 " />
8- < link rel ="stylesheet " type ="text/css " href ="../../../_static/css/theme.css?v=19f00094 " />
8+ < title > diffpy.pdffit2.output — diffpy.pdffit2 1.5.0rc0 documentation</ title >
9+ < link rel ="stylesheet " type ="text/css " href ="../../../_static/pygments.css?v=03e43079 " />
10+ < link rel ="stylesheet " type ="text/css " href ="../../../_static/css/theme.css?v=e59714d7 " />
911
1012
11- <!--[if lt IE 9]>
12- <script src="../../../_static/js/html5shiv.min.js"></script>
13- <![endif]-->
14-
15- < script src ="../../../_static/jquery.js?v=5d32c60e "> </ script >
16- < script src ="../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c "> </ script >
17- < script src ="../../../_static/documentation_options.js?v=e8a4c7ba "> </ script >
18- < script src ="../../../_static/doctools.js?v=9a2dae69 "> </ script >
19- < script src ="../../../_static/sphinx_highlight.js?v=dc90522c "> </ script >
13+ < script src ="../../../_static/jquery.js?v=5d32c60e "> </ script >
14+ < script src ="../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c "> </ script >
15+ < script src ="../../../_static/documentation_options.js?v=c1620c82 "> </ script >
16+ < script src ="../../../_static/doctools.js?v=9bcbadda "> </ script >
17+ < script src ="../../../_static/sphinx_highlight.js?v=dc90522c "> </ script >
2018 < script src ="../../../_static/js/theme.js "> </ script >
2119 < link rel ="index " title ="Index " href ="../../../genindex.html " />
2220 < link rel ="search " title ="Search " href ="../../../search.html " />
3331 < a href ="../../../index.html " class ="icon icon-home ">
3432 diffpy.pdffit2
3533 </ a >
36- < div class ="version ">
37- 1.4.4rc4
38- </ div >
3934< div role ="search ">
4035 < form id ="rtd-search-form " class ="wy-form " action ="../../../search.html " method ="get ">
4136 < input type ="text " name ="q " placeholder ="Search docs " aria-label ="Search docs " />
@@ -90,27 +85,28 @@ <h1>Source code for diffpy.pdffit2.output</h1><div class="highlight"><pre>
9085< span class ="c1 "> # See LICENSE.txt for license information.</ span >
9186< span class ="c1 "> #</ span >
9287< span class ="c1 "> ##############################################################################</ span >
93-
9488< span class ="sd "> """Take care of sending engine output to given file-like object.</ span >
89+
9590< span class ="sd "> The output file is stored in local module variable stdout.</ span >
9691< span class ="sd "> """</ span >
9792
9893
9994< span class ="c1 "> # create module variable stdout</ span >
10095
101- < span class ="kn "> from</ span > < span class ="nn "> sys</ span > < span class ="kn "> import</ span > < span class ="n "> stdout</ span > < span class ="k "> as</ span > < span class ="n "> stdout</ span >
96+ < span class ="kn "> from</ span > < span class =" w " > </ span > < span class ="nn "> sys</ span > < span class =" w " > </ span > < span class ="kn "> import</ span > < span class ="n "> stdout</ span > < span class ="k "> as</ span > < span class ="n "> stdout</ span >
10297
10398< span class ="c1 "> # silence pyflakes checker</ span >
10499< span class ="k "> assert</ span > < span class ="n "> stdout</ span >
105100
106101
107102< div class ="viewcode-block " id ="redirect_stdout ">
108103< a class ="viewcode-back " href ="../../../api/diffpy.pdffit2.html#diffpy.pdffit2.output.redirect_stdout "> [docs]</ a >
109- < span class ="k "> def</ span > < span class ="nf "> redirect_stdout</ span > < span class ="p "> (</ span > < span class ="n "> dst</ span > < span class ="p "> ):</ span >
104+ < span class ="k "> def</ span > < span class =" w " > </ span > < span class ="nf "> redirect_stdout</ span > < span class ="p "> (</ span > < span class ="n "> dst</ span > < span class ="p "> ):</ span >
110105< span class ="w "> </ span > < span class ="sd "> """Redirect PDFfit2 standard output to a file-like object dst.</ span >
106+
111107< span class ="sd "> The dst value is stored in module variable stdout.</ span >
112108< span class ="sd "> """</ span >
113- < span class ="kn "> from</ span > < span class ="nn "> diffpy.pdffit2.pdffit2</ span > < span class ="kn "> import</ span > < span class ="n "> redirect_stdout</ span >
109+ < span class ="kn "> from</ span > < span class =" w " > </ span > < span class ="nn "> diffpy.pdffit2.pdffit2</ span > < span class =" w " > </ span > < span class ="kn "> import</ span > < span class ="n "> redirect_stdout</ span >
114110
115111 < span class ="n "> redirect_stdout</ span > < span class ="p "> (</ span > < span class ="n "> dst</ span > < span class ="p "> )</ span >
116112 < span class ="k "> global</ span > < span class ="n "> stdout</ span >
@@ -119,6 +115,18 @@ <h1>Source code for diffpy.pdffit2.output</h1><div class="highlight"><pre>
119115
120116
121117
118+ < div class ="viewcode-block " id ="restore_stdout ">
119+ < a class ="viewcode-back " href ="../../../api/diffpy.pdffit2.html#diffpy.pdffit2.output.restore_stdout "> [docs]</ a >
120+ < span class ="k "> def</ span > < span class ="w "> </ span > < span class ="nf "> restore_stdout</ span > < span class ="p "> ():</ span >
121+ < span class ="w "> </ span > < span class ="sd "> """Restore the standard output."""</ span >
122+ < span class ="kn "> from</ span > < span class ="w "> </ span > < span class ="nn "> diffpy.pdffit2.pdffit2</ span > < span class ="w "> </ span > < span class ="kn "> import</ span > < span class ="n "> restore_stdout</ span >
123+
124+ < span class ="n "> restore_stdout</ span > < span class ="p "> ()</ span >
125+ < span class ="k "> global</ span > < span class ="n "> stdout</ span >
126+ < span class ="k "> return</ span > </ div >
127+
128+
129+
122130< span class ="c1 "> # End of file</ span >
123131</ pre > </ div >
124132
@@ -129,7 +137,7 @@ <h1>Source code for diffpy.pdffit2.output</h1><div class="highlight"><pre>
129137 < hr />
130138
131139 < div role ="contentinfo ">
132- < p > © Copyright 2024 , The Trustees of Columbia University in the City of New York.</ p >
140+ < p > © Copyright 2025 , The Trustees of Columbia University in the City of New York.</ p >
133141 </ div >
134142
135143 Built with < a href ="https://www.sphinx-doc.org/ "> Sphinx</ a > using a
0 commit comments