Skip to content

Commit 929fc94

Browse files
authored
Merge pull request #2101 from glotzerlab/fix-sdf-documentation
Fix documentation errors
2 parents 40053e5 + f92a3e2 commit 929fc94

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

CHANGELOG.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Change Log
1717
(`#2091 <https://github.com/glotzerlab/hoomd-blue/pull/2091>`__).
1818
* Reduce the time needed to generate mesh bonds
1919
(`#2097 <https://github.com/glotzerlab/hoomd-blue/pull/2097>`__).
20+
* Equations displayed in ``hoomd.hpmc.compute.SDF`` documentation
21+
(`#2096 <https://github.com/glotzerlab/hoomd-blue/discussions/2096>`__).
2022

2123
5.3.0 (2025-06-26)
2224
^^^^^^^^^^^^^^^^^^

hoomd/hpmc/compute.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,8 +441,8 @@ def betaP(self): # noqa: N802 - allow function name
441441
required) and computes the pressure via:
442442
443443
.. math::
444-
\\beta P = \\rho \\left(1 + \\frac{s_\\mathrm{comp}(0+)}{2d} +
445-
\\frac{s_\\mathrm{exp}(0-)}{2d} \
444+
\\beta P = \\rho \\left(1 +
445+
\\frac{s_\\mathrm{comp}(0+) - s_\\mathrm{exp}(0-)}{2d} \
446446
\\right)
447447
448448
where :math:`d` is the dimensionality of the system, :math:`\\rho` is

hoomd/hpmc/pair/step.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Step(Pair):
4242
4343
.. code-block:: python
4444
45-
step = hoomd.hpmc.pair.Step()
45+
step = hoomd.hpmc.pair.Step()
4646
step.params[('A', 'A')] = dict(epsilon=[1, -1], r=[0.5, 1.5])
4747
simulation.operations.integrator.pair_potentials = [step]
4848

hoomd/hpmc/pair/zetterling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class Zetterling(Pair):
7070
Energy scale of the first term :math:`A`
7171
:math:`[\\mathrm{energy}]`
7272
* ``alpha`` (`float`, **required**) -
73-
Screening factor :math:`\alpha`
73+
Screening factor :math:`\\alpha`
7474
:math:`[\\mathrm{length}^{-1}]`
7575
* ``kf`` (`float`, **required**) -
7676
Wave number to mimic the Friedel oscillations effect :math:`k_F`

0 commit comments

Comments
 (0)