neutronpy.fileio.load_data

neutronpy.fileio.load_data(files, filetype='auto', tols=0.0001, build_hkl=True, load_instrument=False)[source]

Loads one or more files and creates a Data object with the loaded data.

Parameters:
files : str or tuple of str

A file or non-keyworded list of files containing data for input.

filetype : str, optional

Default: ‘auto’. Specify file type; Currently supported file types are ‘SPICE’ (HFIR), ‘ICE’ and ‘ICP’ (NIST), ‘MAD’ (ILL), ‘dcs_mslice’ DAVE exported ascii formats, GRASP exported ascii and HDF5 formats, and neutronpy exported formats. By default the function will attempt to determine the filetype automatically.

tols : float or array_like

Default: 1e-4. A float or array of shape (5,) giving tolerances for combining multiple files. If multiple points are within the given tolerances then they will be combined into a single point. If a float is given, tolerances will all be the same for all variables in Q. If an array is given tolerances should be in the format [h, k, l, e, temp].

Returns:
Data : object

A Data object populated with the data from the input file or files.