\(\renewcommand\AA{\unicode{x212B}}\)
Table of Contents
Name | Direction | Type | Default | Description |
---|---|---|---|---|
InputWorkspace | Input | MatrixWorkspace | Mandatory | An input workspace to be saved. |
InputType | Input | string | To identify what input function is being used. | |
Title | Input | string | The title line for the output file. | |
Filename | Input | string | Mandatory | The filename to use for the saved data. Allowed extensions: [‘.fq’] |
This algorithm saves files consistent with RMCProfile.
The header of the file contains the number of data points in the file, the function type,
and a title for the data. The body of the file is of the form x y
.
Example - SaveRMCProfile
# Create a host workspace
ws = CreateWorkspace(DataX=range(0,3), DataY=range(0,3), UnitX="Angstrom")
# Create a filename
import os
path = os.path.join(os.path.expanduser("~"), "SaveRMCProfile.fq")
# Save as G(r) file
SaveRMCProfile(InputWorkspace=ws, InputType="G(r)", Title="Data_title", Filename=path)
# Check that the file exists
print(os.path.isfile(path))
Output:
True
Categories: AlgorithmIndex | DataHandling\Text
C++ header: SaveRMCProfile.h (last modified: 2020-03-25)
C++ source: SaveRMCProfile.cpp (last modified: 2020-03-25)