diffpy.fourigui package

Tool for visualizing 3D diffraction and PDF Images.

Submodules

diffpy.fourigui.fourigui module

class diffpy.fourigui.fourigui.Gui(*args: Any, **kwargs: Any)[source]

Bases: Frame

animation()[source]

slices through the 3D array along the selected axis

applycutoff()[source]

shape the reciprocal-space array

reassign all voxels with distance smaller than qmin and greater than qmax to np.nan.

parameters:

qmin, qmax is loaded from the qmin, qmax input panel currently operates in units of pixels

Returns:

nothing

colorrange_upd()[source]

change color range in plot

fft()[source]

Fourier transform 3D array from reciprocal to real space the origin of reciprocal and real space is expected to be the central voxel

ifft()[source]

Inverse Fourier transform 3D array from real to reciprocal space the origin of real and reciprocal space is expected to be the central voxel

initUI()[source]

Initialize the GUI for fourigui

intensity_upd_global()[source]

Load global intensity minimum, maximum and sum of 3D array

intensity_upd_local()[source]

show local intensity minimum, maximum and sum of current plotted plane

load_cube()[source]

loads 3D array in h5py file format from the filename input panel 3D array is expected to be a reconstructed reciprocal scattering volume when executed, one slide perpendicular to the selected axis will be plotted in the plot panel

multiple_funcs()[source]

Executes multiple functions passed as arguments in sequence.

newcutoff()[source]

Apply a new cutoff based on the current space and cutoff settings.

plot_next_plane()[source]

Plot the next plane in the dataset, looping back to the first if at the end.

plot_plane()[source]

update plotted plane perpendicular to the selected axis

redocutuff()[source]

Redo the cutoff operation depending on the current space (real or reciprocal).

diffpy.fourigui.fourigui.main()[source]