Skip to content
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

Add missing parenthesis to electronic_structure.boltztrap.BoltztrapAnalyzer.get_extreme.is_isotropic #4271

Merged

Conversation

DanielYang59
Copy link
Contributor

@DanielYang59 DanielYang59 commented Jan 28, 2025

Summary

return bool(
all([st[0], st[1], st[2]])
and (abs((st[1] - st[0]) / st[1]) <= isotropy_tolerance)
and (abs(st[2] - st[0]) / st[2] <= isotropy_tolerance)
and (abs((st[2] - st[0]) / st[2]) <= isotropy_tolerance)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mark in case hard to review: this is the only functional change (added missing parenthesis) in this PR, others should be type/comment cleanups.

@DanielYang59 DanielYang59 marked this pull request as ready for review January 28, 2025 15:44
@shyuep shyuep enabled auto-merge (squash) January 28, 2025 20:28
@shyuep shyuep disabled auto-merge January 28, 2025 20:28
@shyuep shyuep merged commit ed80c87 into materialsproject:master Jan 28, 2025
3 of 4 checks passed
@DanielYang59 DanielYang59 deleted the fix-4165-bt-analyzer-get-extreme branch January 28, 2025 20:53
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.

[BUG] Missing () in electronic_structure.boltztrap.BoltztrapAnalyzer.get_extreme.is_isotropic
2 participants