Skip to content

Latest commit

 

History

History
87 lines (66 loc) · 5.3 KB

Workspace.rst

File metadata and controls

87 lines (66 loc) · 5.3 KB

Workspace

Workspaces store data that :ref:`algorithms <algorithm>` operate on. Workspaces are usually stored in-memory. An algorithm can manipulate a workspace in-place or create a new one as an output.

Workspace is as loose term that encompases a range of possible data structures. All forms of Workspace provide some common information:

  • The type identifier (id) of the workspace (see below), unique to every type of workspace
  • The name of the workspace, unique to every instance of a workspace even those of the same type
  • The history of :ref:`algorithms <algorithm>` that were run to form and manipulate the workspace to its current state

Tip

In :ref:`MantidWorkbench <workbench>` the data from the workspaces can be graphically viewed, inspected, and plotted in many ways.

Note

In addition to data, workspaces hold a :ref:`workspace history <Workspace-Workspace_History>`, which details the algorithms which have been run on this workspace. This means workspaces carry all the meta-information to fully recreate themeselves.

The workspace type id identifies the type of a Workspace instance.

Tip

For C++ or Python development, these values are needed in such functions as the :ref:`Analysis Data Service's <Analysis Data Service>` createWorkspace.

ID Workspace Type
"IEventWorkspace" IEventWorkspace
"ITableWorkspace" ITableWorkspace
"WorkspaceGroup" WorkspaceGroup
"AbsManagedWorkspace2D" AbsManagedWorkspace2D
"CompressedWorkspace2D" CompressedWorkspace2D
"EventWorkspace" :ref:`EventWorkspace <EventWorkspace>`
"ManagedWorkspace2D" ManagedWorkspace2D
"TableWorkspace" TableWorkspace
"Workspace2D" :ref:`Workspace2D <Workspace2D>`
"WorkspaceSingleValue" WorkspaceSingleValue
"ManagedRawFileWorkspace2D" ManagedRawFileWorkspace2D
"MDWorkspace" :ref:`MDWorkspace <MDWorkspace>`
"MDHistoWorkspace" :ref:`MDHistoWorkspace <MDHistoWorkspace>`

This :ref:`page <WorkingWithWorkspaces>` describes how you can work with workspaces in python, including accessing their properties and history

:ref:`Table Workspace <Table Workspaces>` is the best solution at present for customising the data structures you need. Changes beyond that are at present not trivial. For specialisation of existing data structures, or new data requirements, please contact the Mantid Team for help.

.. categories:: Concepts