recording_iteration_stack.py

Management of iteration stack for recording.

class openmdao.recorders.recording_iteration_stack.Recording(name, iter_count, recording_requester)[source]

Bases: object

A class that acts as a context manager.

But with properly-timed values for abs and rel, where solvers are concerned.

Parameters
namestr

Name of object getting recorded.

iter_countint

Current counter of iterations completed.

recording_requesterobject

The object that wants to be recorded.

Attributes
namestr

Name of object getting recorded.

iter_countint

Current counter of iterations completed.

recording_requesterweakref to object

The object that wants to be recorded.

stacklist

Stack containing names and iteration counts.

absfloat

Absolute error.

relfloat

Relative error.

_is_solverbool

True if recording_requester is a Solver.

__init__(name, iter_count, recording_requester)[source]

Initialize Recording.