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

Fix imports #14

Merged
merged 10 commits into from
Nov 21, 2024
Merged

Fix imports #14

merged 10 commits into from
Nov 21, 2024

Conversation

mcocdawc
Copy link
Contributor

@mcocdawc mcocdawc commented Nov 21, 2024

review after #13 is merged

  • imports moved to head of file where appropriate
  • explicitly give reasons when imports are in the middle of a file
  • turned relative into absolute imports
  • replaced wildcard imports with explicit imports

@mcocdawc mcocdawc mentioned this pull request Nov 21, 2024
Copy link
Member

@mscho527 mscho527 left a comment

Choose a reason for hiding this comment

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

another minor minor minor change / question

.ruff.toml Show resolved Hide resolved
import sys
from functools import reduce

import numpy

import scipy.linalg
from libdmet.lo import pywannier90
Copy link
Member

Choose a reason for hiding this comment

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

pywannier90 is optional; would moving this to the top affect environments that don't have wannier90 configured?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

as discussed with @mscho527 in person, the pywannier python interface is always there. It just might not work, if the wannier library is not installed.

@mcocdawc mcocdawc merged commit 04afa19 into main Nov 21, 2024
3 checks passed
@mscho527 mscho527 deleted the fix_imports branch December 3, 2024 02:18
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.

2 participants