StorageManager

class StorageManager(defaultVersion=1)

Define the way OpenTURNS’ objects are saved and reloaded.

Available constructors:

StorageManager(defaultVersion=1)

Parameters:
defaultVersionpositive int

Argument interpreted as the name of the object in a user point of view. This name is never used in another way than for user information. This name has no meaning to the platform.

Notes

A StorageManager object can be used only through its derived classes including XMLStorageManager and its HDF5 counterpart.

Methods

getClassName()

Accessor to the object's name.

getDefaultStudyVersion()

Return the version of the study that the manager can read/write.

getStudyVersion()

Get the study version.

setStudyVersion(version)

Set the study version.

__init__(defaultVersion=1)
getClassName()

Accessor to the object’s name.

Returns:
class_namestr

The object class name (object.__class__.__name__).

getDefaultStudyVersion()

Return the version of the study that the manager can read/write.

Returns:
versionpositive int

Version of the study that the manager can read/write.

getStudyVersion()

Get the study version.

Returns:
versionpositive int

Study version.

setStudyVersion(version)

Set the study version.

Parameters:
versionpositive int

Study version.

Examples using the class

Save/load a study

Save/load a study