Commit a4340dc
committed
Remove self-assignments
In lines 587-589, a variable is getting assigned to itself, which is probably an error:
```python
else:
delta_gs = [g_vectors] * num_kpts
g_mapping = g_mapping
```
Around lines 912-917, the same thing happens with another variable:
```python
elif kmeans_weighting_function == "sum_squares":
# w(r) = sum_{i} |phi_{ki}(r)|
weighting_function = np.einsum(
"kRi,kRi->R", bloch_orbitals_mo.conj(), bloch_orbitals_mo, optimize=True
)
weighting_function = weighting_function
```1 parent fbeb56d commit a4340dc
1 file changed
Lines changed: 0 additions & 2 deletions
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
589 | | - | |
590 | 589 | | |
591 | 590 | | |
592 | 591 | | |
| |||
914 | 913 | | |
915 | 914 | | |
916 | 915 | | |
917 | | - | |
918 | 916 | | |
919 | 917 | | |
920 | 918 | | |
| |||
0 commit comments