Skip to content

Commit

Permalink
Updated docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
lauri-codes committed May 13, 2024
1 parent 7f02522 commit 40d2a28
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 6 deletions.
4 changes: 3 additions & 1 deletion docs/2.1.x/_modules/dscribe/descriptors/descriptor.html
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,9 @@ <h1>Source code for dscribe.descriptors.descriptor</h1><div class="highlight"><p
<span class="c1"># Check that the system does not have elements that are not in the list</span>
<span class="c1"># of atomic numbers</span>
<span class="k">if</span> <span class="n">np</span><span class="o">.</span><span class="n">isnan</span><span class="p">(</span><span class="n">positions</span><span class="o">.</span><span class="n">any</span><span class="p">()):</span>
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="s2">&quot;The given system has a NaN value in the atomic positions.&quot;</span><span class="p">)</span>
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span>
<span class="s2">&quot;The given system has a NaN value in the atomic positions.&quot;</span>
<span class="p">)</span>
<span class="k">return</span> <span class="n">positions</span></div>

<div class="viewcode-block" id="Descriptor.validate_pbc"><a class="viewcode-back" href="../../../doc/dscribe.descriptors.html#dscribe.descriptors.descriptor.Descriptor.validate_pbc">[docs]</a> <span class="k">def</span> <span class="nf">validate_pbc</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">pbc</span><span class="p">):</span>
Expand Down
8 changes: 7 additions & 1 deletion docs/2.1.x/_sources/changelog.rst.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
Changelog
=========
- 2.1.1:
- Added:
- Better validation of the input system, including checks and possible normalization of positions, cell, atomic numbers and periodic boundary conditions.
- Fixed:
- Issue with ACSF G5 calculation. See issue `#138 <https://github.com/SINGROUP/dscribe/issues/138>`_.

- 2.1.0:
- Added:
- New :code:`compression` option for :code:`SOAP` courtesy of `jlparkI <https://github.com/jlparkI>`_.
Expand All @@ -10,7 +16,7 @@ Changelog
- Added:
- Wheel distributions for Linux, MacOS and Windows.
- Fixed:
- Issue with exception not being raised when analytical derivatives were requested for SOAP with weighting turned on. See issue `#89 <https://github.com/SINGROUP/dscribe/issues/113>`_.
- Issue with exception not being raised when analytical derivatives were requested for SOAP with weighting turned on. See issue `#113 <https://github.com/SINGROUP/dscribe/issues/113>`_.

- 2.0.0:
- Added:
Expand Down
22 changes: 21 additions & 1 deletion docs/2.1.x/changelog.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,26 @@ <h1>Changelog<a class="headerlink" href="#changelog" title="Permalink to this he
<blockquote>
<div><ul class="simple">
<li><dl class="simple">
<dt>2.1.1:</dt><dd><ul>
<li><dl class="simple">
<dt>Added:</dt><dd><ul>
<li><p>Better validation of the input system, including checks and possible normalization of positions, cell, atomic numbers and periodic boundary conditions.</p></li>
</ul>
</dd>
</dl>
</li>
<li><dl class="simple">
<dt>Fixed:</dt><dd><ul>
<li><p>Issue with ACSF G5 calculation. See issue <a class="reference external" href="https://github.com/SINGROUP/dscribe/issues/138">#138</a>.</p></li>
</ul>
</dd>
</dl>
</li>
</ul>
</dd>
</dl>
</li>
<li><dl class="simple">
<dt>2.1.0:</dt><dd><ul>
<li><dl class="simple">
<dt>Added:</dt><dd><ul>
Expand Down Expand Up @@ -119,7 +139,7 @@ <h1>Changelog<a class="headerlink" href="#changelog" title="Permalink to this he
</li>
<li><dl class="simple">
<dt>Fixed:</dt><dd><ul>
<li><p>Issue with exception not being raised when analytical derivatives were requested for SOAP with weighting turned on. See issue <a class="reference external" href="https://github.com/SINGROUP/dscribe/issues/113">#89</a>.</p></li>
<li><p>Issue with exception not being raised when analytical derivatives were requested for SOAP with weighting turned on. See issue <a class="reference external" href="https://github.com/SINGROUP/dscribe/issues/113">#113</a>.</p></li>
</ul>
</dd>
</dl>
Expand Down
2 changes: 1 addition & 1 deletion docs/2.1.x/searchindex.js

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion docs/src/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
Changelog
=========
- 2.1.1:
- Added:
- Better validation of the input system, including checks and possible normalization of positions, cell, atomic numbers and periodic boundary conditions.
- Fixed:
- Issue with ACSF G5 calculation. See issue `#138 <https://github.com/SINGROUP/dscribe/issues/138>`_.

- 2.1.0:
- Added:
- New :code:`compression` option for :code:`SOAP` courtesy of `jlparkI <https://github.com/jlparkI>`_.
Expand All @@ -10,7 +16,7 @@ Changelog
- Added:
- Wheel distributions for Linux, MacOS and Windows.
- Fixed:
- Issue with exception not being raised when analytical derivatives were requested for SOAP with weighting turned on. See issue `#89 <https://github.com/SINGROUP/dscribe/issues/113>`_.
- Issue with exception not being raised when analytical derivatives were requested for SOAP with weighting turned on. See issue `#113 <https://github.com/SINGROUP/dscribe/issues/113>`_.

- 2.0.0:
- Added:
Expand Down
4 changes: 3 additions & 1 deletion dscribe/descriptors/descriptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ def validate_positions(self, positions):
# Check that the system does not have elements that are not in the list
# of atomic numbers
if np.isnan(positions.any()):
raise ValueError("The given system has a NaN value in the atomic positions.")
raise ValueError(
"The given system has a NaN value in the atomic positions."
)
return positions

def validate_pbc(self, pbc):
Expand Down

0 comments on commit 40d2a28

Please sign in to comment.