Skip to content

Commit

Permalink
Formatting fixes to the RST docs (#1622)
Browse files Browse the repository at this point in the history
  • Loading branch information
opotowsky committed Jan 25, 2024
1 parent 3d49274 commit c2af604
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions armi/nucDirectory/nuclideBases.py
Original file line number Diff line number Diff line change
Expand Up @@ -1230,11 +1230,11 @@ def addNuclideBases():
:id: I_ARMI_ND_DATA0
:implements: R_ARMI_ND_DATA
This function reads the `nuclides.dat` file from the ARMI resources
This function reads the ``nuclides.dat`` file from the ARMI resources
folder. This file contains metadata for 4,614 nuclides, including
number of protons, number of neutrons, atomic number, excited
state, element symbol, atomic mass, natural abundance, half-life,
and spontaneous fission yield. The data in `nuclides.dat` have been
and spontaneous fission yield. The data in ``nuclides.dat`` have been
collected from multiple different sources; the references are given
in comments at the top of that file.
"""
Expand Down
2 changes: 1 addition & 1 deletion armi/physics/fuelCycle/fuelHandlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ def swapAssemblies(self, a1, a2):
and same height of stationary blocks. If not, return an error.
If all checks pass, the :py:meth:`~armi.reactor.assemblies.Assembly.remove`
and :py:meth:`~armi.reactor.assemblies.Assembly.insert``
and :py:meth:`~armi.reactor.assemblies.Assembly.insert`
methods are used to swap the stationary blocks between the two assemblies.
Once this process is complete, the actual assembly movement can take
Expand Down
2 changes: 1 addition & 1 deletion armi/physics/neutronics/crossSectionGroupManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ class AverageBlockCollection(BlockCollection):
volume-weighted average. Inheriting functionality from the abstract
:py:class:`Reactor <armi.physics.neutronics.crossSectionGroupManager.BlockCollection>` object, this class
will construct representative blocks using averaged parameters of all blocks in the given collection.
Number density averages can be computed at a component level through `self._performAverageByComponent`,
Number density averages can be computed at a component level through ``self._performAverageByComponent``,
or at a block level by default. Average nuclide temperatures and burnup are also included when constructing a representative block.
"""
Expand Down
6 changes: 3 additions & 3 deletions armi/reactor/components/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ class Component(composites.Composite, metaclass=ComponentType):
:implements: R_ARMI_COMP_ORDER
Determining Component order by outermost diameters is implemented via
the __lt__() method, which is used to control sort() as the
standard approach in Python. However, __lt__() does not show up in the API.
the ``__lt__()`` method, which is used to control ``sort()`` as the
standard approach in Python. However, ``__lt__()`` does not show up in the API.
Attributes
----------
Expand Down Expand Up @@ -977,7 +977,7 @@ def getThermalExpansionFactor(self, Tc=None, T0=None):
This method enables the calculation of the thermal expansion factor
for a given material. If the material is solid, the difference
between T0 and Tc is used to calculate the thermal expansion
between ``T0`` and ``Tc`` is used to calculate the thermal expansion
factor. If a solid material does not have a linear expansion factor
defined and the temperature difference is greater than
:py:attr:`armi.reactor.components.component.Component._TOLERANCE`, an
Expand Down
28 changes: 14 additions & 14 deletions armi/reactor/reactors.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,9 @@ class Core(composites.Composite):
A :py:class:`Core <armi.reactor.reactors.Core>` object is typically a
child of a :py:class:`Reactor <armi.reactor.reactors.Reactor>` object.
A Reactor can contain multiple objects of the Core type. The instance
attribute name `r.core` is reserved for the object representating the
attribute name ``r.core`` is reserved for the object representating the
active core. A reactor may also have a spent fuel pool instance
attribute, `r.sfp`, which is also of type
attribute, ``r.sfp``, which is also of type
:py:class:`core <armi.reactor.reactors.Core>`.
Most of the operations to retrieve information from the ARMI reactor
Expand Down Expand Up @@ -830,7 +830,7 @@ def getNumRings(self, indexBased=False):
:implements: R_ARMI_R_NUM_RINGS
This method determines the number of rings in the reactor. If the
setting `circularRingMode` is enabled (by default it is false), the
setting ``circularRingMode`` is enabled (by default it is false), the
assemblies will be grouped into roughly circular rings based on
their positions and the number of circular rings is reteurned.
Otherwise, the number of hex rings is returned. This parameter is
Expand Down Expand Up @@ -1196,8 +1196,8 @@ def getAssemblyByName(self, name):
This method returns the :py:class:`assembly
<armi.reactor.core.assemblies.Assembly>` with a name matching the
value provided as an input parameter to this function. The `name` of
an assembly is based on the `assemNum` parameter.
value provided as an input parameter to this function. The ``name`` of
an assembly is based on the ``assemNum`` parameter.
Parameters
----------
Expand Down Expand Up @@ -1719,10 +1719,10 @@ def getAssemblyWithStringLocation(self, locationString):
This method returns the :py:class:`assembly
<armi.reactor.core.assemblies.Assembly>` located in the requested
location. The location is provided to this method as an input
parameter in a string with the format "001-001". For a `HexGrid
parameter in a string with the format "001-001". For a :py:class:`HexGrid
<armi.reactor.grids.hexagonal.HexGrid>`, the first number indicates
the hexagonal ring and the second number indicates the position
within that ring. For a `CartesianGrid
within that ring. For a :py:class:`CartesianGrid
<armi.reactor.grids.cartesian.CartesianGrid>`, the first number
represents the x index and the second number represents the y index.
If there is no assembly in the grid at the requested location, this
Expand Down Expand Up @@ -1775,15 +1775,15 @@ def findNeighbors(
:py:meth:`getNeighboringCellIndices
<armi.reactor.grids.StructuredGrid.getNeighboringCellIndices>`. For
a hexagonal grid, the (i, j) indices are converted to (ring,
position) indexing using the core.spatialGrid instance attribute.
position) indexing using the ``core.spatialGrid`` instance attribute.
The `showBlanks` option determines whether non-existing assemblies
will be indicated with a `None` in the list or just excluded from
The ``showBlanks`` option determines whether non-existing assemblies
will be indicated with a ``None`` in the list or just excluded from
the list altogether.
The `duplicateAssembliesOnReflectiveBoundary` setting only works for
The ``duplicateAssembliesOnReflectiveBoundary`` setting only works for
1/3 core symmetry with periodic boundary conditions. For these types
of geometries, if this setting is `True`, neighbor lists for
of geometries, if this setting is ``True``, neighbor lists for
assemblies along a periodic boundary will include the assemblies
along the opposite periodic boundary that are effectively neighbors.
Expand Down Expand Up @@ -2046,9 +2046,9 @@ def findAllMeshPoints(self, assems=None, applySubMesh=True):
:implements: R_ARMI_R_MESH
This method iterates through all of the assemblies provided, or all
assemblies in the core if no list of `assems` is provided, and
assemblies in the core if no list of ``assems`` is provided, and
constructs a tuple of three lists which contain the unique i, j, and
k mesh coordinates, respectively. The `applySubMesh` setting
k mesh coordinates, respectively. The ``applySubMesh`` setting
controls whether the mesh will include the submesh coordinates. For
a standard assembly-based reactor geometry with a hexagonal or
Cartesian assembly grid, this method is only used to produce axial
Expand Down
4 changes: 2 additions & 2 deletions armi/runLog.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,8 +545,8 @@ class RunLogger(logging.Logger):
At any place in the ARMI application, developers can interject a plain text
logging message, and when that code is hit during an ARMI simulation, the text
will be piped to screen and a log file. By default, the ``logging`` module only
logs to screen, but ARMI adds a ``FileHandler` in the ``RunLog`` constructor
and in py:meth:`armi.runLog._RunLog.startLog`.
logs to screen, but ARMI adds a ``FileHandler`` in the ``RunLog`` constructor
and in ``_RunLog.startLog``.
"""

FMT = "%(levelname)s%(message)s"
Expand Down

0 comments on commit c2af604

Please sign in to comment.