fix: preserve atom order in map_atom_types#1007
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughFixed Changesmap_atom_types Fix
Estimated code review effort: 1 (Trivial) | ~5 minutes Estimated code review effortNot applicable beyond the metadata line above. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
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. Comment |
Merging this PR will not alter performance
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1007 +/- ##
==========================================
- Coverage 86.87% 86.87% -0.01%
==========================================
Files 89 89
Lines 8268 8266 -2
==========================================
- Hits 7183 7181 -2
Misses 1085 1085 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
atom_namesinstead of expanding groupedatom_numbs[H, O, H])Fixes #984.
Verification
python -m pytest test_system_set_type.py -q(fromtests/):3 passed in 0.20spython -m ruff check dpdata/system.py tests/test_system_set_type.py:All checks passed![0, 1, 0]Summary by CodeRabbit
Bug Fixes
Tests