- class openpnm.utils.Workspace(*args, **kwargs)¶
The Workspace object provides the highest level of adminstrative control over active OpenPNM sessions.
It is a
dictionarythat stores a list of all open Projects by name.
This class is a singleton so that whenever and wherever a Workspace is instantiated, the same instance is obtained. This allows it to maintain a definitive record of all open Projects.
The Workspace object contains a variety of functions that one might expect from the ‘file-menu’ in a typical GUI.
Removes the specified Project from the Workspace
Makes a copy of an existing Project
Loads a Project from the specified 'pnm' file
Loads project(s) from a saved workspace into current workspace
Creates a new empty Project object
Saves given Project to a
Saves all projects in the current workspace as a single file