Skip to content

Commit 85053e3

Browse files
authored
Cleaning up some casual docstrings (#2048)
1 parent 1920ff0 commit 85053e3

File tree

6 files changed

+7
-26
lines changed

6 files changed

+7
-26
lines changed

armi/apps.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,6 @@
1818
This module defines the :py:class:`App` class, which is used to configure the ARMI
1919
Framework for a specific application. An ``App`` implements a simple interface for
2020
customizing much of the Framework's behavior.
21-
22-
Notes
23-
-----
24-
Historical Fun Fact
25-
26-
This pattern is used by many frameworks as a way of encapsulating what would otherwise be global
27-
state. The ARMI Framework has historically made heavy use of global state (e.g.,
28-
:py:mod:`armi.nucDirectory.nuclideBases`), and it will take quite a bit of effort to refactor the
29-
code to access such things through an App object.
3021
"""
3122
# ruff: noqa: E402
3223
import collections

armi/mpiActions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ def invokeHook(self):
469469
actionResult = None
470470
try:
471471
action = mpiComm.scatter(self._actions, root=0)
472-
# create a new communicator that only has these specific dudes running
472+
# create a new communicator that only has these specific processes running
473473
hasAction = action is not None
474474
context.MPI_COMM = mpiComm.Split(int(hasAction))
475475
context.MPI_RANK = context.MPI_COMM.Get_rank()

armi/nuclearDataIO/cccc/isotxs.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -753,8 +753,9 @@ def _getScatterMatrix(self, blockNumIndex):
753753
"""
754754
Get the scatter matrix for a particular blockNum.
755755
756-
Note: This is stupid and the logic should be combined with _setScatterMatrix.
757-
Please recommend a better way to do it during code review.
756+
Notes
757+
-----
758+
This logic could be combined with _setScatterMatrix.
758759
"""
759760
if blockNumIndex == self._getElasticScatterBlockNumIndex():
760761
scatterMatrix = self._getMicros().elasticScatter

armi/physics/__init__.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,4 @@
6969
And then the associated ARMI-based app could import both ``IAEA.physics.neutronics.superSourceTerm`` and
7070
``IAEA.physics.economics.magwoodsbrain``. Having a consistency in namespace along these lines is
7171
quite nice.
72-
73-
If you want to propose a new namespace root folder here, we recommend making a ticket to aid in the discussion.
74-
75-
76-
.. admonition:: Historical fun fact
77-
78-
**All** physics modules once actually lived in this package,
79-
before the age of Plugins began. The current state is transient, and will
80-
converge as the framework matures.
8172
"""

armi/physics/fuelCycle/fuelHandlers.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,12 +278,11 @@ def findAssembly(
278278
multiplier. For example, if you wanted an assembly that had a bu close to half of
279279
assembly bob, you'd give param='percentBu', compareTo=(bob,0.5) If you want one with a
280280
bu close to 0.3, you'd do param='percentBu',compareTo=0.3. Yes, if you give a (float,
281-
multiplier) tuple, the code will make fun of you for not doing your own math, but will
282-
still operate as expected.
281+
multiplier) tuple the code will still work as expected.
283282
284283
forceSide : bool, optional
285284
requires the found assembly to have either 1: higher, -1: lower, None: any param than
286-
compareTo
285+
compareTo
287286
288287
exclusions : list, optional
289288
List of assemblies that will be excluded from the search

armi/utils/gridEditor.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@
5151
between asemblies of different design, but the same flags.
5252
5353
* No proper zoom support, and object sizes are fixed and don't accommodate long
54-
specifiers. Adding zoom would make for a fun first task to a new developer interested
55-
in computer graphics.
54+
specifiers.
5655
"""
5756

5857
import colorsys

0 commit comments

Comments
 (0)