Skip to content

Commit f1f3dbe

Browse files
authored
Updating parameter-related docs (#1919)
1 parent 356750c commit f1f3dbe

8 files changed

+24
-7
lines changed

armi/reactor/parameters/__init__.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,17 @@
7171
>>> b.p.fuelTemp = numpy.array(range(217), dtype=float)
7272
>>> b.p.fuelTemp[58] = 600
7373
74+
The parameter attributes can be access via the ``paramDefs`` property. Perhaps a user is
75+
curious about the units of a block parameter:
76+
77+
>>> defs = b.p.paramDefs
78+
>>> defs["heightBOL"]
79+
<ParamDef name:heightBOL collectionType:BlockParameterCollection units:cm assigned:29>
80+
81+
# Or, more simply:
82+
>>> defs["heightBOL"].units
83+
'cm'
84+
7485
.. note::
7586
7687
There have been many discussions on what the specific name of this module/system

armi/reactor/parameters/parameterCollections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ def paramDefs(self) -> parameterDefinitions.ParameterDefinitionCollection:
431431
Get the :py:class:`ParameterDefinitionCollection` associated with this instance.
432432
433433
This serves as both an alias for the pDefs class attribute, and as a read-only
434-
accessor for them. Most non-paramter-system related interactions with an
434+
accessor for them. Most non-parameter-system related interactions with an
435435
object's ``ParameterCollection`` should go through this. In the future, it
436436
probably makes sense to make the ``pDefs`` that the ``applyDefinitions`` and
437437
``ResolveParametersMeta`` things are sensitive to more hidden from outside the

doc/user/assembly_parameters_report.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
Assembly Parameters
55
*******************
66

7-
This document lists all of the Assembly Parameters that are provided by the ARMI Framework.
7+
This document lists all of the :py:mod:`Assembly Parameters <armi.reactor.assemblyParameters>` that are provided by the
8+
ARMI Framework. See :py:mod:`armi.reactor.parameters` for use.
89

910
.. exec::
1011
from armi.reactor import assemblies

doc/user/block_parameters_report.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
Block Parameters
55
****************
66

7-
This document lists all of the Block Parameters that are provided by the ARMI Framework.
7+
This document lists all of the :py:mod:`Block Parameters <armi.reactor.blockParameters>` that are provided by the ARMI
8+
Framework. See :py:mod:`armi.reactor.parameters` for use.
89

910
.. exec::
1011
from armi.reactor import blocks

doc/user/component_parameters_report.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
Component Parameters
55
********************
66

7-
This document lists all of the Component Parameters that are provided by the ARMI Framework.
7+
This document lists all of the :py:mod:`Component Parameters <armi.reactor.components.componentParameters>` that are
8+
provided by the ARMI Framework. See :py:mod:`armi.reactor.parameters` for use.
89

910
.. exec::
1011
from armi.reactor.components import Component

doc/user/core_parameters_report.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
Core Parameters
55
***************
66

7-
This document lists all of the Core Parameters that are provided by the ARMI Framework.
7+
This document lists all of the Core Parameters that are provided by the ARMI Framework. See
8+
:py:mod:`armi.reactor.parameters` for use.
89

910
.. exec::
1011
from armi.reactor import reactors

doc/user/manual_data_access.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ Accessing Some Interesting Info
2525
Often times, you may be interested in the geometric dimensions of various blocks. These are stored on the
2626
:py:mod:`components <armi.reactor.components>`, and may be accessed as follows::
2727

28-
b = o.r.core.getFirstBlock(Flags.FUEL)
28+
b = r.core.getFirstBlock(Flags.FUEL)
29+
# Depending on how the reactor was loaded, this may need to be ``o.r``.
2930
fuel = b.getComponent(Flags.FUEL)
3031
od = fuel.getDimension('od',cold=True) # fuel outer diameter in cm
3132
odHot = fuel.getDimension('od') # hot dimension

doc/user/reactor_parameters_report.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
Reactor Parameters
55
******************
66

7-
This document lists all of the Reactor Parameters that are provided by the ARMI Framework.
7+
This document lists all of the :py:mod:`Reactor Parameters <armi.reactor.reactorParameters>` that are provided by the
8+
ARMI Framework. See :py:mod:`armi.reactor.parameters` for use.
89

910
.. exec::
1011
from armi.reactor import reactors

0 commit comments

Comments
 (0)