Skip to content

Commit 6f10e97

Browse files
committed
fix the non-deter bug
1 parent 02fb3ba commit 6f10e97

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pyxtal/XRD_indexer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -428,9 +428,9 @@ def get_cell_from_multi_hkls(spg, hkls, two_thetas, long_thetas=None, wave_lengt
428428
theta_100s = np.degrees(np.arcsin(wave_length / (2 * d_100s)))
429429
theta_010s = np.degrees(np.arcsin(wave_length / (2 * d_010s)))
430430
theta_001s = np.degrees(np.arcsin(wave_length / (2 * d_001s)))#; print(len(cells))
431-
h_maxs = np.array(long_thetas[-1] / theta_100s, dtype=int)
432-
k_maxs = np.array(long_thetas[-1] / theta_010s, dtype=int)
433-
l_maxs = np.array(long_thetas[-1] / theta_001s, dtype=int)
431+
h_maxs = np.array(long_thetas[-1] / theta_100s, dtype=int); h_maxs[h_maxs > 100] = 100
432+
k_maxs = np.array(long_thetas[-1] / theta_010s, dtype=int); k_maxs[k_maxs > 100] = 100
433+
l_maxs = np.array(long_thetas[-1] / theta_001s, dtype=int); l_maxs[l_maxs > 100] = 100
434434

435435
solutions = []
436436
for i, cell in enumerate(cells):

0 commit comments

Comments
 (0)