Workspace

From MantidProject

Jump to: navigation, search

Contents

What are they?

Workspaces are the nouns of Mantid. Workspaces hold the data in Mantid, they come in several forms, but the most common by far is the MatrixWorkspace which represents XYE data for one or more spectra. In MantidPlot the data from the workspace you can viewed as a Matrix or a table, and graphed data in many ways including Line graphs, contour plots, 3D graphs and view the data using the 3D Instrument View.

Workspaces can be created by executing several mantid algorithms for example LoadRaw, LoadNexus, and LoadDAE.

What information is in a workspace

Mandatory

  • Measured or derived data with associated errors

Optionally

Example Workspaces

  • Workspace1D - A workspace for holding one dimensional data in memory.
  • Workspace2D - A workspace for holding two dimensional data in memory, this is the most commonly used workspace.
  • ManagedWorkspace2D - An extension to the Workspace2D that can hold larger datasets that can be reasonably held in memory. It uses temporary files on the disk to extend the amount of memory available. However as such algorithms operating on a Managed workspace tend to run slower.

A full list of algorithms is found in the Algorithms category

Writing you own workspace

This is perfectly possible, but not as easy as creating your own algorithm. Please talk to a member of the development team if you wish to implement you own workspace.

Personal tools
Create a book