Skip to content

Commit 5fc867f

Browse files
committed
deploy: 49af3ef
1 parent 106892d commit 5fc867f

6 files changed

Lines changed: 17 additions & 30 deletions

File tree

_modules/diffpy/labpdfproc/functions.html

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -106,16 +106,6 @@ <h1>Source code for diffpy.labpdfproc.functions</h1><div class="highlight"><pre>
106106
<span class="bp">self</span><span class="o">.</span><span class="n">grid</span> <span class="o">=</span> <span class="p">{(</span><span class="n">x</span><span class="p">,</span> <span class="n">y</span><span class="p">)</span> <span class="k">for</span> <span class="n">x</span> <span class="ow">in</span> <span class="n">xs</span> <span class="k">for</span> <span class="n">y</span> <span class="ow">in</span> <span class="n">ys</span> <span class="k">if</span> <span class="n">x</span><span class="o">**</span><span class="mi">2</span> <span class="o">+</span> <span class="n">y</span><span class="o">**</span><span class="mi">2</span> <span class="o">&lt;=</span> <span class="bp">self</span><span class="o">.</span><span class="n">radius</span><span class="o">**</span><span class="mi">2</span><span class="p">}</span>
107107
<span class="bp">self</span><span class="o">.</span><span class="n">total_points_in_grid</span> <span class="o">=</span> <span class="nb">len</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">grid</span><span class="p">)</span>
108108

109-
<span class="c1"># def get_coordinate_index(self, coordinate): # I think we probably dont need this function?</span>
110-
<span class="c1"># count = 0</span>
111-
<span class="c1"># for i, target in enumerate(self.grid):</span>
112-
<span class="c1"># if coordinate == target:</span>
113-
<span class="c1"># return i</span>
114-
<span class="c1"># else:</span>
115-
<span class="c1"># count += 1</span>
116-
<span class="c1"># if count &gt;= len(self.grid):</span>
117-
<span class="c1"># raise IndexError(f&quot;WARNING: no coordinate {coordinate} found in coordinates list&quot;)</span>
118-
119109
<div class="viewcode-block" id="Gridded_circle.set_distances_at_angle">
120110
<a class="viewcode-back" href="../../../api/diffpy.labpdfproc.html#diffpy.labpdfproc.functions.Gridded_circle.set_distances_at_angle">[docs]</a>
121111
<span class="k">def</span> <span class="nf">set_distances_at_angle</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">angle</span><span class="p">):</span>

_modules/diffpy/labpdfproc/labpdfprocapp.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,14 @@ <h1>Source code for diffpy.labpdfproc.labpdfprocapp</h1><div class="highlight"><
9393
<span class="s2">&quot;input&quot;</span><span class="p">,</span>
9494
<span class="n">nargs</span><span class="o">=</span><span class="s2">&quot;+&quot;</span><span class="p">,</span>
9595
<span class="n">help</span><span class="o">=</span><span class="s2">&quot;The filename(s) or folder(s) of the datafile(s) to load. &quot;</span>
96-
<span class="s2">&quot;Required.</span><span class="se">\n</span><span class="s2">Supply a space-separated list of files or directories.&quot;</span>
96+
<span class="s2">&quot;Required.</span><span class="se">\n</span><span class="s2">Supply a space-separated list of files or directories. &quot;</span>
9797
<span class="s2">&quot;Long lists can be supplied, one per line, in a file with name &quot;</span>
9898
<span class="s2">&quot;file_list.txt. If one or more directory is provided, all valid &quot;</span>
9999
<span class="s2">&quot;data-files in that directory will be processed. Examples of valid &quot;</span>
100100
<span class="s2">&quot;inputs are &#39;file.xy&#39;, &#39;data/file.xy&#39;, &#39;file.xy, data/file.xy&#39;, &quot;</span>
101-
<span class="s2">&quot;&#39;.&#39; (load everything in the current directory), &#39;data&#39; (load&quot;</span>
102-
<span class="s2">&quot;everything in the folder ./data), &#39;data/file_list.txt&#39; (load&quot;</span>
103-
<span class="s2">&quot; the list of files contained in the text-file called &quot;</span>
101+
<span class="s2">&quot;&#39;.&#39; (load everything in the current directory), &#39;data&#39; (load &quot;</span>
102+
<span class="s2">&quot;everything in the folder ./data), &#39;data/file_list.txt&#39; (load &quot;</span>
103+
<span class="s2">&quot;the list of files contained in the text-file called &quot;</span>
104104
<span class="s2">&quot;file_list.txt that can be found in the folder ./data), &quot;</span>
105105
<span class="s2">&quot;&#39;./*.chi&#39;, &#39;data/*.chi&#39; (load all files with extension .chi in the &quot;</span>
106106
<span class="s2">&quot;folder ./data).&quot;</span><span class="p">,</span>
@@ -124,7 +124,7 @@ <h1>Source code for diffpy.labpdfproc.labpdfprocapp</h1><div class="highlight"><
124124
<span class="s2">&quot;-o&quot;</span><span class="p">,</span>
125125
<span class="s2">&quot;--output-directory&quot;</span><span class="p">,</span>
126126
<span class="n">help</span><span class="o">=</span><span class="s2">&quot;The name of the output directory. If not specified &quot;</span>
127-
<span class="s2">&quot;then corrected files will be written to the current directory.&quot;</span>
127+
<span class="s2">&quot;then corrected files will be written to the current directory. &quot;</span>
128128
<span class="s2">&quot;If the specified directory doesn&#39;t exist it will be created.&quot;</span><span class="p">,</span>
129129
<span class="n">default</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
130130
<span class="p">)</span>
@@ -143,7 +143,6 @@ <h1>Source code for diffpy.labpdfproc.labpdfprocapp</h1><div class="highlight"><
143143
<span class="n">action</span><span class="o">=</span><span class="s2">&quot;store_true&quot;</span><span class="p">,</span>
144144
<span class="n">help</span><span class="o">=</span><span class="s2">&quot;The absorption correction will be output to a file if this &quot;</span>
145145
<span class="s2">&quot;flag is set. Default is that it is not output.&quot;</span><span class="p">,</span>
146-
<span class="n">default</span><span class="o">=</span><span class="s2">&quot;tth&quot;</span><span class="p">,</span>
147146
<span class="p">)</span>
148147
<span class="n">p</span><span class="o">.</span><span class="n">add_argument</span><span class="p">(</span>
149148
<span class="s2">&quot;-f&quot;</span><span class="p">,</span>

_modules/diffpy/labpdfproc/tools.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,13 +195,12 @@ <h1>Source code for diffpy.labpdfproc.tools</h1><div class="highlight"><pre>
195195
<span class="sd"> args argparse.Namespace</span>
196196
<span class="sd"> the arguments from the parser</span>
197197

198+
<span class="sd"> we raise a ValueError if the input wavelength is non-positive</span>
199+
<span class="sd"> or if the input anode_type is not one of the known sources</span>
200+
198201
<span class="sd"> Returns</span>
199202
<span class="sd"> -------</span>
200203
<span class="sd"> args argparse.Namespace</span>
201-
202-
<span class="sd"> we raise an ValueError if the input wavelength is non-positive</span>
203-
<span class="sd"> or if the input anode_type is not one of the known sources</span>
204-
205204
<span class="sd"> &quot;&quot;&quot;</span>
206205
<span class="k">if</span> <span class="n">args</span><span class="o">.</span><span class="n">wavelength</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span> <span class="ow">and</span> <span class="n">args</span><span class="o">.</span><span class="n">wavelength</span> <span class="o">&lt;=</span> <span class="mi">0</span><span class="p">:</span>
207206
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span>

api/diffpy.labpdfproc.html

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -296,15 +296,14 @@ <h2>Submodules<a class="headerlink" href="#submodules" title="Link to this headi
296296
<dd><p>Set the wavelength based on the given input arguments</p>
297297
<dl class="field-list simple">
298298
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
299-
<dd class="field-odd"><p><strong>argparse.Namespace</strong> (<em>args</em>) – the arguments from the parser</p>
300-
</dd>
301-
<dt class="field-even">Returns<span class="colon">:</span></dt>
302-
<dd class="field-even"><p><ul class="simple">
303-
<li><p><em>args argparse.Namespace</em></p></li>
304-
<li><p><em>we raise an ValueError if the input wavelength is non-positive</em></p></li>
305-
<li><p><em>or if the input anode_type is not one of the known sources</em></p></li>
299+
<dd class="field-odd"><ul class="simple">
300+
<li><p><strong>argparse.Namespace</strong> (<em>args</em>) – the arguments from the parser</p></li>
301+
<li><p><strong>non-positive</strong> (<em>we raise a ValueError if the input wavelength is</em>)</p></li>
302+
<li><p><strong>sources</strong> (<em>or if the input anode_type is not one</em><em> of </em><em>the known</em>)</p></li>
306303
</ul>
307-
</p>
304+
</dd>
305+
<dt class="field-even">Return type<span class="colon">:</span></dt>
306+
<dd class="field-even"><p>args argparse.Namespace</p>
308307
</dd>
309308
</dl>
310309
</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 04, 2024.</div>
84+
<div class="line">Last updated September 05, 2024.</div>
8585
</div>
8686
<section id="authors">
8787
<h2>Authors<a class="headerlink" href="#authors" title="Link to this heading"></a></h2>

searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)