sqlite_recorder.py

Class definition for SqliteRecorder, which provides dictionary backed by SQLite

class openmdao.recorders.sqlite_recorder.SqliteRecorder(out, **sqlite_dict_args)[source]

Bases: openmdao.recorders.base_recorder.BaseRecorder

close()[source]

Closes out

record_iteration(params, unknowns, resids, metadata)[source]

Stores the provided data in the sqlite file using the iteration coordinate for the key.

Args:

params : dict

Dictionary containing parameters. (p)

unknowns : dict

Dictionary containing outputs and states. (u)

resids : dict

Dictionary containing residuals. (r)

metadata : dict, optional

Dictionary containing execution metadata (e.g. iteration coordinate).

record_metadata(group)[source]

Stores the metadata of the given group in a sqlite file using the variable name for the key.

Args:

group : System

System containing vectors