Add code for 1D detector #69

Merged
usov_i merged 118 commits from det1d into master 2020-10-22 12:07:50 +02:00
14 changed files with 1842 additions and 54 deletions
Showing only changes of commit de0c1b1f4b - Show all commits

View File

@ -226,9 +226,9 @@ def create():
meas = det_data["Measurements"][meas_name] meas = det_data["Measurements"][meas_name]
meas["num_of_peaks"] = 1 meas["num_of_peaks"] = 1
meas["peak_indexes"] = [(np.abs(meas["om"] - float(new))).argmin()] peak_ind = (np.abs(meas["om"] - float(new))).argmin()
print(meas["peak_indexes"]) meas["peak_indexes"] = np.array([peak_ind], dtype=np.int64)
meas["peak_heights"] = [0] meas["peak_heights"] = np.array([meas["smooth_peaks"][peak_ind]])
_update_table() _update_table()
_update_plot(meas_name) _update_plot(meas_name)