Skip to content

Commit 5beae0d

Browse files
committed
Correction on above/below the diagonal
1 parent b33de4c commit 5beae0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

RascalC/correction_function_3pcf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ def compute_3pcf_correction_function_from_encore(randoms_pos: np.ndarray[float],
140140
# bin_index1 and bin_index2 cover all the bin pairs under the condition bin_index1 < bin_index2, the order follows the ENCORE format
141141

142142
leg_triple = np.zeros([n, n, n_multipoles])
143-
leg_triple[bin_index1, bin_index2] = triple_counts # fill below diagonal
144-
leg_triple[bin_index2, bin_index1] = triple_counts # fill above diagonal symmetrically
143+
leg_triple[bin_index1, bin_index2] = triple_counts # fill above the diagonal
144+
leg_triple[bin_index2, bin_index1] = triple_counts # fill below the diagonal symmetrically
145145

146146
# fill the middle diagonal elements
147147
bin_indices_middle = bin_indices[1:-1]

0 commit comments

Comments
 (0)