Skip to content

Commit e5e5349

Browse files
committed
deploy: 224bf0f
1 parent 5fc867f commit e5e5349

4 files changed

Lines changed: 16 additions & 16 deletions

File tree

_modules/diffpy/labpdfproc/tools.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,14 @@ <h1>Source code for diffpy.labpdfproc.tools</h1><div class="highlight"><pre>
9696
<span class="sd"> args argparse.Namespace</span>
9797
<span class="sd"> the arguments from the parser</span>
9898

99-
<span class="sd"> Returns</span>
100-
<span class="sd"> -------</span>
101-
<span class="sd"> pathlib.PosixPath that contains the full path of the output directory</span>
102-
10399
<span class="sd"> it is determined as follows:</span>
104100
<span class="sd"> If user provides an output directory, use it.</span>
105101
<span class="sd"> Otherwise, we set it to the current directory if nothing is provided.</span>
106102
<span class="sd"> We then create the directory if it does not exist.</span>
107103

104+
<span class="sd"> Returns</span>
105+
<span class="sd"> -------</span>
106+
<span class="sd"> a Path object that contains the full path of the output directory</span>
108107
<span class="sd"> &quot;&quot;&quot;</span>
109108
<span class="n">output_dir</span> <span class="o">=</span> <span class="n">Path</span><span class="p">(</span><span class="n">args</span><span class="o">.</span><span class="n">output_directory</span><span class="p">)</span><span class="o">.</span><span class="n">resolve</span><span class="p">()</span> <span class="k">if</span> <span class="n">args</span><span class="o">.</span><span class="n">output_directory</span> <span class="k">else</span> <span class="n">Path</span><span class="o">.</span><span class="n">cwd</span><span class="p">()</span><span class="o">.</span><span class="n">resolve</span><span class="p">()</span>
110109
<span class="n">output_dir</span><span class="o">.</span><span class="n">mkdir</span><span class="p">(</span><span class="n">parents</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">exist_ok</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>

api/diffpy.labpdfproc.html

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -275,17 +275,18 @@ <h2>Submodules<a class="headerlink" href="#submodules" title="Link to this headi
275275
<dd><p>set the output directory based on the given input arguments</p>
276276
<dl class="field-list simple">
277277
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
278-
<dd class="field-odd"><p><strong>argparse.Namespace</strong> (<em>args</em>) – the arguments from the parser</p>
279-
</dd>
280-
<dt class="field-even">Returns<span class="colon">:</span></dt>
281-
<dd class="field-even"><p><ul class="simple">
282-
<li><p><em>pathlib.PosixPath that contains the full path of the output directory</em></p></li>
283-
<li><p><em>it is determined as follows</em></p></li>
284-
<li><p><em>If user provides an output directory, use it.</em></p></li>
285-
<li><p><em>Otherwise, we set it to the current directory if nothing is provided.</em></p></li>
286-
<li><p><em>We then create the directory if it does not exist.</em></p></li>
278+
<dd class="field-odd"><ul class="simple">
279+
<li><p><strong>argparse.Namespace</strong> (<em>args</em>) – the arguments from the parser</p></li>
280+
<li><p><strong>follows</strong> (<em>it is determined as</em>)</p></li>
281+
<li><p><strong>directory</strong> (<em>If user provides an output</em>)</p></li>
282+
<li><p><strong>it.</strong> (<em>use</em>)</p></li>
283+
<li><p><strong>Otherwise</strong></p></li>
284+
<li><p><strong>provided.</strong> (<em>we set it to the current directory if nothing is</em>)</p></li>
285+
<li><p><strong>exist.</strong> (<em>We then create the directory if it does not</em>)</p></li>
287286
</ul>
288-
</p>
287+
</dd>
288+
<dt class="field-even">Return type<span class="colon">:</span></dt>
289+
<dd class="field-even"><p>a Path object that contains the full path of the output directory</p>
289290
</dd>
290291
</dl>
291292
</dd></dl>

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ <h1>diffpy.labpdfproc documentation<a class="headerlink" href="#title" title="Li
8181
<p>diffpy.labpdfproc - Tools for processing x-ray powder diffraction data from laboratory sources.</p>
8282
<div class="line-block">
8383
<div class="line">Software version 0.1.1.</div>
84-
<div class="line">Last updated September 05, 2024.</div>
84+
<div class="line">Last updated September 06, 2024.</div>
8585
</div>
8686
<section id="authors">
8787
<h2>Authors<a class="headerlink" href="#authors" title="Link to this heading"></a></h2>

0 commit comments

Comments
 (0)