SavePDFGui v1

../_images/SavePDFGui-v1_dlg.png

SavePDFGui dialog.

Summary

Save files readable by PDFGui

Properties

Name Direction Type Default Description
InputWorkspace Input MatrixWorkspace Mandatory An input workspace.
Filename Input string Mandatory The filename to use for the saved data. Allowed extensions: [‘.gr’]

Description

This algorithm saves G(r) files consistent with PDFGui. The body of the file is of the form r Gr dr dGr.

Usage

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: Algorithms | DataHandling\Text

Source

C++ source: SavePDFGui.cpp (last modified: 2017-02-02)

C++ header: SavePDFGui.h (last modified: 2016-06-17)