SaveReflections v1

../_images/SaveReflections-v1_dlg.png

SaveReflections dialog.

Summary

Saves single crystal reflections to a variety of formats

Properties

Name Direction Type Default Description
InputWorkspace Input TableWorkspace Mandatory The name of the peaks worksapce to save
Filename Input string Mandatory File with the data from a phonon calculation.
Format Input string Fullprof The output format to export reflections to. Allowed values: [‘Fullprof’, ‘GSAS’, ‘Jana’, ‘SHELX’]

Description

Save a PeaksWorkspace to a variety of different text formats. This algorithm currently provides support for exporting a PeaksWorkspace to GSAS, SHELX, Fullprof, and Jana formats.

Usage

Example - a simple example of running SaveHKL.

import os

path = os.path.join(os.path.expanduser("~"), "MyPeaks.hkl")

#load a peaks workspace from file
peaks = LoadIsawPeaks(Filename=r'Peaks5637.integrate')

SaveReflections(peaks, Filename=path)

print(os.path.isfile(path))

Output:

True

Categories: AlgorithmIndex | DataHandling\Text | Crystal\DataHandling

Source

Python: SaveReflections.py (last modified: 2019-01-29)