-
Notifications
You must be signed in to change notification settings - Fork 12
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
Multiple PROCAR
parsing fix
#57
Conversation
WalkthroughThe changes update the Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant P as Procar
participant F as File
U->>P: call read(fobjs_or_paths)
P->>F: open file (encoding='utf-8')
F-->>P: return file contents
P->>P: execute _read() for k-point processing
P-->>U: return processed data
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (7)
🔇 Additional comments (3)
✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #57 +/- ##
=====================================
Coverage 0.00% 0.00%
=====================================
Files 10 10
Lines 2055 2057 +2
=====================================
- Misses 2055 2057 +2 ☔ View full report in Codecov by Sentry. |
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.
Thanks for the fix!
This fixes an issue reported by @Iamkeli when parsing multiple (
LORBIT = 14
)PROCAR
s at once, for doingeasyunfold unfold plot-projections
.Basically, the issue was the previous code relied on finding the next double-blank-line in the
PROCAR
as the marker between k-points (when skipping a previously-parsed kpoint for efficiency), but this is not the case forLORBIT = 14
which has 2 blank lines between each band and 3 blank lines between k-points. The updated implementation is more robust, directly matching the"k-point"
string.Working as expected with updated implementation (here showing the contributions of a resonant donor to the CB):

DeprecationWarning
with the latest version ofmonty
Summary by CodeRabbit