-
Notifications
You must be signed in to change notification settings - Fork 26
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
Cleanup xrdutil #663
Cleanup xrdutil #663
Conversation
Hello @ZackAttack614! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2024-07-02 18:15:31 UTC |
hexrd/xrdutil/utils.py
Outdated
self.save_eta_ome_maps(self, filename) | ||
|
||
@staticmethod | ||
def save_eta_ome_maps(eta_ome, filename): | ||
def save_eta_ome_maps(eta_ome, filename: str) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing type annotation on eta_ome
hexrd/xrdutil/utils.py
Outdated
lmin = [processWavelength(e) for e in minEnergy] | ||
lmax = [processWavelength(e) for e in maxEnergy] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like minEnergy
and maxEnergy
got swapped in the change here. Can you change them back?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Clean up the
xrdutil.py
file.USE_NUMBA
checks.@deprecated
decorator to warn users of functions marked for sunset.