Skip to content

Commit

Permalink
Updating parameter-related docs (#1919)
Browse files Browse the repository at this point in the history
  • Loading branch information
opotowsky authored Oct 1, 2024
1 parent 356750c commit f1f3dbe
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 7 deletions.
11 changes: 11 additions & 0 deletions armi/reactor/parameters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,17 @@
>>> b.p.fuelTemp = numpy.array(range(217), dtype=float)
>>> b.p.fuelTemp[58] = 600
The parameter attributes can be access via the ``paramDefs`` property. Perhaps a user is
curious about the units of a block parameter:
>>> defs = b.p.paramDefs
>>> defs["heightBOL"]
<ParamDef name:heightBOL collectionType:BlockParameterCollection units:cm assigned:29>
# Or, more simply:
>>> defs["heightBOL"].units
'cm'
.. note::
There have been many discussions on what the specific name of this module/system
Expand Down
2 changes: 1 addition & 1 deletion armi/reactor/parameters/parameterCollections.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ def paramDefs(self) -> parameterDefinitions.ParameterDefinitionCollection:
Get the :py:class:`ParameterDefinitionCollection` associated with this instance.
This serves as both an alias for the pDefs class attribute, and as a read-only
accessor for them. Most non-paramter-system related interactions with an
accessor for them. Most non-parameter-system related interactions with an
object's ``ParameterCollection`` should go through this. In the future, it
probably makes sense to make the ``pDefs`` that the ``applyDefinitions`` and
``ResolveParametersMeta`` things are sensitive to more hidden from outside the
Expand Down
3 changes: 2 additions & 1 deletion doc/user/assembly_parameters_report.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
Assembly Parameters
*******************

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

.. exec::
from armi.reactor import assemblies
Expand Down
3 changes: 2 additions & 1 deletion doc/user/block_parameters_report.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
Block Parameters
****************

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

.. exec::
from armi.reactor import blocks
Expand Down
3 changes: 2 additions & 1 deletion doc/user/component_parameters_report.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
Component Parameters
********************

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

.. exec::
from armi.reactor.components import Component
Expand Down
3 changes: 2 additions & 1 deletion doc/user/core_parameters_report.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
Core Parameters
***************

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

.. exec::
from armi.reactor import reactors
Expand Down
3 changes: 2 additions & 1 deletion doc/user/manual_data_access.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ Accessing Some Interesting Info
Often times, you may be interested in the geometric dimensions of various blocks. These are stored on the
:py:mod:`components <armi.reactor.components>`, and may be accessed as follows::

b = o.r.core.getFirstBlock(Flags.FUEL)
b = r.core.getFirstBlock(Flags.FUEL)
# Depending on how the reactor was loaded, this may need to be ``o.r``.
fuel = b.getComponent(Flags.FUEL)
od = fuel.getDimension('od',cold=True) # fuel outer diameter in cm
odHot = fuel.getDimension('od') # hot dimension
Expand Down
3 changes: 2 additions & 1 deletion doc/user/reactor_parameters_report.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
Reactor Parameters
******************

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

.. exec::
from armi.reactor import reactors
Expand Down

0 comments on commit f1f3dbe

Please sign in to comment.