Don't display not required k vectors

This commit is contained in:
usov_i 2023-01-20 17:53:02 +01:00
parent 32a591136e
commit e563666373

View File

@ -446,13 +446,14 @@ def create():
c = int(intensity_exp / mon * 10000) c = int(intensity_exp / mon * 10000)
# Recognize k_flag_vec # Recognize k_flag_vec
min_hkl_m = np.minimum(1 - hkl_m % 1, hkl_m % 1) reduced_hkl_m = np.minimum(1 - hkl_m % 1, hkl_m % 1)
for j2, _k in enumerate(k): for ind, _k in enumerate(k):
if all(np.abs(min_hkl_m - _k) < tol_k): if all(np.abs(reduced_hkl_m - _k) < tol_k):
k_flag_vec.append(j2) k_flag_vec.append(ind)
break break
else: else:
k_flag_vec.append(len(k)) # not required
continue
# Save data # Save data
hkl_coord.append([hkl1, hkl2, hkl_m]) hkl_coord.append([hkl1, hkl2, hkl_m])