MCPcopy Create free account
hub / github.com/NSLS2/PyXRF / get_fit_data

Function get_fit_data

pyxrf/model/fileio.py:1895–1911  ·  view source on GitHub ↗

Read fit data from h5 file. This is to be moved to filestore part. Parameters --------- namelist : list list of str for element lines data : array 3D array of fitting results

(namelist, data)

Source from the content-addressed store, hash-verified

1893
1894
1895def get_fit_data(namelist, data):
1896 """
1897 Read fit data from h5 file. This is to be moved to filestore part.
1898
1899 Parameters
1900 ---------
1901 namelist : list
1902 list of str for element lines
1903 data : array
1904 3D array of fitting results
1905 """
1906 data_temp = dict()
1907 for i, v in enumerate(namelist):
1908 if not isinstance(v, str):
1909 v = v.decode()
1910 data_temp.update({v: data[i, :, :]})
1911 return data_temp
1912
1913
1914def read_hdf_to_stitch(working_directory, filelist, shape, ignore_file=None):

Callers 1

read_hdf_APSFunction · 0.85

Calls 1

updateMethod · 0.80

Tested by

no test coverage detected