22#include "MantidNexusGeometry/NexusGeometrySave.h"
51 return "Save the instrument from a workspace to a Nexus-format"
52 " HDF file. WARNING: shapes are NOT saved in the present version "
65 "Workspace containing the Instrument.");
68 "Full path to save destination file");
71 "(optional) Name of the H5 root group in which the "
72 "Instrument is to be saved. Default name: 'entry'.");
84 const auto &compInfo = ws->componentInfo();
85 const auto &detInfo = ws->detectorInfo();
87 NexusGeometry::LogAdapter<Kernel::Logger> adapter(&
g_log);
88 Mantid::NexusGeometry::NexusGeometrySave::saveInstrument(compInfo, detInfo, destinationFile, rootFileName, adapter);
#define DECLARE_ALGORITHM(classname)
IPeaksWorkspace_sptr workspace
void declareProperty(std::unique_ptr< Kernel::Property > p, const std::string &doc="") override
Add a property to the list of managed properties.
std::string getPropertyValue(const std::string &name) const override
Get the value of a property as a string.
TypedValue getProperty(const std::string &name) const override
Get the value of a property.
@ OptionalSave
to specify a file to write to but an empty string is
A property class for workspaces.
void exec() override
Execute the algorithm.
const std::string summary() const override
Algorithm's summary for use in the GUI and help.
const std::string category() const override
Algorithm's category for identification.
int version() const override
Algorithm's version for identification.
void init() override
Initialize the algorithm's properties.
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
Describes the direction (within an algorithm) of a Property.
@ Input
An input workspace.