\(\renewcommand\AA{\unicode{x212B}}\)

CloneWorkspace v1

Summary

Copies an existing workspace into a new one.

See Also

CompareWorkspaces

Properties

Name

Direction

Type

Default

Description

InputWorkspace

Input

Workspace

Mandatory

Name of the input workspace. Must be a MatrixWorkspace (2D or EventWorkspace), a PeaksWorkspace or a MDEventWorkspace.

OutputWorkspace

Output

Workspace

Mandatory

Name of the newly created cloned workspace.

Description

This algorithm performs a deep copy of all of the information in the workspace. It maintains events if the input is an EventWorkspace. It will call CloneMDWorkspace for a MDEventWorkspace or a MDHistoWorkspace. It can also clone a PeaksWorkspace.

If in-place operation is requested (e.g. InputWorkspace==OutputWorkspace) this algorithm does nothing.

Categories: AlgorithmIndex | Utility\Workspaces

Source

C++ header: CloneWorkspace.h

C++ source: CloneWorkspace.cpp