case.py¶
-
class
openmdao.recorders.case.
Case
(filename, case_id, case_dict)[source]¶ Bases:
object
Case wraps the data from a single iteration/case of a recording to make it more easily accessible to the user.
Args: filename : str
The filename from which the Case was constructed.
case_id : str
The identifier string associated with the Case.
case_dict : dict
A dictionary containing fields for the parameters, unknowns, derivatives, and residuals in the Case, as well as a Case timestamp, success flag, and string message.
Attributes
filename (str) The file from which the case was loaded case_id (str) The identifier of the case/iteration in the case recorder timestamp (str) Time of execution of the case success (str) Success flag for the case msg (str) Message associated with the case parameters (dict) Parameters in the case. Keyed by parameter path name, values are float or dict. unknowns (dict) Unknowns in the case. Keyed by variable path name, values are float or dict. derivs (dict) Derivatives in the case. Different optimizers store the derivatives in different ways. resids (dict) Residuals in the case. Keyed by variable path name, values are float or dict.