feat: scf convergence check in vasp .xml format.#862
feat: scf convergence check in vasp .xml format.#862wanghan-iapcm merged 4 commits intodeepmodeling:develfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## devel #862 +/- ##
==========================================
+ Coverage 85.41% 85.45% +0.04%
==========================================
Files 82 82
Lines 7577 7592 +15
==========================================
+ Hits 6472 6488 +16
+ Misses 1105 1104 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
📝 WalkthroughWalkthroughA new optional SCF convergence filtering feature was introduced to the VASP XML parsing logic. This includes updates to the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant VASPXMLFormat
participant vasp.xml.analyze
participant vasp.xml.analyze_calculation
User->>VASPXMLFormat: from_labeled_system(file_name, ..., convergence_check)
VASPXMLFormat->>vasp.xml.analyze: analyze(file_name, ..., convergence_check)
vasp.xml.analyze->>vasp.xml.analyze: Extract NELM if convergence_check
loop for each <calculation> in XML
vasp.xml.analyze->>vasp.xml.analyze_calculation: analyze_calculation(calculation, nelm)
vasp.xml.analyze_calculation-->>vasp.xml.analyze: (data..., is_converged)
alt convergence_check is True
alt is_converged
vasp.xml.analyze->>vasp.xml.analyze: Append calculation data
else is not converged
vasp.xml.analyze->>vasp.xml.analyze: Skip calculation
end
else convergence_check is False
vasp.xml.analyze->>vasp.xml.analyze: Append calculation data
end
end
vasp.xml.analyze-->>VASPXMLFormat: Analysis result
VASPXMLFormat-->>User: LabeledSystem
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~15–20 minutes Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
CodSpeed WallTime Performance ReportMerging #862 will not alter performanceComparing Summary
|
Signed-off-by: Han Wang <92130845+wanghan-iapcm@users.noreply.github.com>
Signed-off-by: Han Wang <92130845+wanghan-iapcm@users.noreply.github.com>
for more information, see https://pre-commit.ci
Summary by CodeRabbit
New Features
Tests