Skip to content

Commit

Permalink
Adding impl tag descriptions to parameters (#1598)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdlafleur committed Jan 24, 2024
1 parent 2917be1 commit 6411416
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions armi/reactor/parameters/parameterDefinitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,17 @@ class Serializer:
:id: I_ARMI_PARAM_SERIALIZE
:implements: R_ARMI_PARAM_SERIALIZE
Important physical parameters are stored in every ARMI object.
These parameters represent the plant's state during execution
of the model. Currently, this requires that the parameters be serializable to a
numpy array of a datatype supported by the ``h5py`` package so that the data can
be written to, and subsequently read from, an HDF5 file.
This class allows for these parameters to be serialized in a custom manner by
providing interfaces for packing and unpacking parameter data. The user or
downstream plugin is able to specify how data is serialized if that data is not
naturally serializable.
See Also
--------
armi.bookkeeping.db.database3.packSpecialData
Expand Down Expand Up @@ -344,6 +355,13 @@ def setter(self, setter):
:id: I_ARMI_PARAM_PARALLEL
:implements: R_ARMI_PARAM_PARALLEL
Parameters need to be handled properly during parallel code execution. This
includes notifying processes if a parameter has been updated by
another process. This method allows for setting a parameter's value as well
as an attribute that signals whether this parameter has been updated. Future
processes will be able to query this attribute so that the parameter's
status is properly communicated.
Notes
-----
Unlike the traditional Python ``property`` class, this does not return a new
Expand Down Expand Up @@ -587,6 +605,11 @@ def toWriteToDB(self, assignedMask: Optional[int] = None):
:id: I_ARMI_PARAM_DB
:implements: R_ARMI_PARAM_DB
This method is called when writing the parameters to the database file. It
queries the parameter's ``saveToDB`` attribute to ensure that this parameter
is desired for saving to the database file. It returns a list of parameters
that should be included in the database write operation.
Parameters
----------
assignedMask : int
Expand Down

0 comments on commit 6411416

Please sign in to comment.