\(\renewcommand\AA{\unicode{x212B}}\)
Table of Contents
Name | Direction | Type | Default | Description |
---|---|---|---|---|
InputWorkspace | Input | MatrixWorkspace | Mandatory | An input workspace with units of Atomic Distance. |
Filename | Input | string | Mandatory | The filename to use for the saved data. Allowed extensions: [‘.gr’] |
This algorithm saves G(r) files consistent with PDFGui.
The body of the file is of the form r Gr dr dGr
.
Example - SavePDFGui
# 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("~"), "savepdfgui.gr")
# Save as G(r) file
SavePDFGui(ws, path)
# Check that the file exists
print(os.path.isfile(path))
Output:
True
Categories: AlgorithmIndex | DataHandling\Text
C++ header: SavePDFGui.h (last modified: 2020-03-25)
C++ source: SavePDFGui.cpp (last modified: 2020-03-25)