Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
CreatePeaksWorkspace-v1.rst 1.73 KiB

Description

This algorithm can be used to create a:

  • :ref:`PeaksWorkspace <PeaksWorkspace>` (Default, or when OutputType is set to Peak.)
  • :ref:`LeanElasticPeaksWorkspace <LeanElasticPeaksWorkspace>` (when OutputType is set to LeanElasticPeak)

Use :ref:`algm-LoadIsawPeaks` or :ref:`algm-FindPeaksMD` to create a peaks workspace with peaks.

This workspace can serve as a starting point for modifying the :ref:`PeaksWorkspace <PeaksWorkspace>`, using the GUI or python scripting, for example.

If the input workspace is a MDWorkspace then the instrument from the first experiment info is used.

Usage

Example: An empty table, not tied to an instrument

Output:

Example: Create an empty LeanElasticPeaksWorkspace, not tied to an instrument

Output:

Example: With a few peaks in place

Output: