fix: fix nopbc in dpdata driver#4027
Conversation
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
WalkthroughWalkthroughThe recent changes in the Changes
Sequence Diagram(s)sequenceDiagram
participant A as User
participant B as driver.py
participant C as Data Dictionary
A->>B: Call label method
B->>C: Check for "nopbc" key
alt "nopbc" is absent or False
B->>B: Assign cell variable
else "nopbc" is True
B->>B: Proceed with alternative logic
end
B->>A: Return result
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? |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## devel #4027 +/- ##
==========================================
- Coverage 82.93% 82.93% -0.01%
==========================================
Files 522 522
Lines 51036 51036
Branches 3030 3028 -2
==========================================
- Hits 42326 42325 -1
+ Misses 7764 7763 -1
- Partials 946 948 +2 ☔ View full report in Codecov by Sentry. |
Sometimes dpdata data may contain `"nopbc": False` (from ase or n2p2). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Improved handling of the "nopbc" key in the data processing logic, enhancing the accuracy of cell variable assignments. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
Sometimes dpdata data may contain
"nopbc": False(from ase or n2p2).Summary by CodeRabbit