DataUtils.XrLoader#

DataUtils.XrLoader.py

load_xr(folder_path)#

Load X-ray scattering data from a folder containing .dat files. :param folder_path: Path to the folder containing .dat files. :type folder_path: str

Returns:

xr_array – 3D array containing the X-ray scattering data.

Return type:

np.ndarray

Notes

The function assumes that each .dat file contains data in a format compatible with np.loadtxt. The first dimension corresponds to the number of files, the second to the number of points, and the third to the data columns.

xr_remove_bubbles(xr_array, logger=None, debug=False)#
load_xr_with_options(folder_path, remove_bubbles=False, logger=None, debug=False)#