Skip to content

Fix #926: remove self-assignment #1058

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 3, 2025
Merged

Fix #926: remove self-assignment #1058

merged 1 commit into from
Jun 3, 2025

Conversation

mhucka
Copy link
Contributor

@mhucka mhucka commented Jun 2, 2025

On line 72, the variable eri_kpt is assigned to itself. It's not clear what it should be instead – either something is missing on the RHS or else it's just a pointless assignment.

if dtype == float:
    eri_kpt = eri_kpt.real
eri_kpt = eri_kpt

Resolves issue #926.

On line 72, the variable eri_kpt is assigned to itself. It's not clear what it should be instead – either something is missing on the RHS or else it's just a pointless assignment.

```python
if dtype == float:
    eri_kpt = eri_kpt.real
eri_kpt = eri_kpt
```
@mhucka mhucka requested review from ncrubin and dstrain115 June 2, 2025 22:11
@mhucka mhucka added this pull request to the merge queue Jun 3, 2025
Merged via the queue into master with commit f7ce69c Jun 3, 2025
29 checks passed
@mhucka mhucka deleted the mh-fix-926 branch June 3, 2025 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants