Code: database¶
An interface to SQLite Databases to store Model components, experiments, analyses, etc…
-
class
pyesm.core.database.ESMDatabase[source]¶ Bases:
objectA Database to hold your simulations. This may be of interest if you need a automatic way to keep track of:
- Which components your model was composed of
A SQL database is created at the file defined by the environmental variable
$ESM_DB_PATH, otherwise the database object is created in memory.-
register_component(Name, Version, LateralResolution, VerticalResolution, Timestep)[source]¶ Registers the component in the database table Component. The record takes the form of:
Component_ID Name Version Lateral_Res Vertical_Res Timestep 1 Component0.0.0NoneNoneNone2 ECHAM66.3.02p4T63L47450Parameters: