Commit 94fe957
chore: change econf embed to spin representation (#4166)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Introduced a function to transform electronic configuration data into
a spin representation, enhancing how electronic states are represented.
- Updated the electronic configuration embedding to include negative
values, reflecting a new encoding scheme.
- Added a normalization function for electronic configuration vectors to
improve data consistency.
- **Tests**
- Added a new test for the spin representation functionality to ensure
accuracy of the transformation for iron (Fe).
- Updated existing tests to align with the new expected output format.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Han Wang <wang_han@iapcm.ac.cn>
Co-authored-by: Duo <50307526+iProzd@users.noreply.github.com>1 parent ab48d90 commit 94fe957
3 files changed
Lines changed: 186 additions & 123 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
226 | 228 | | |
227 | 229 | | |
228 | 230 | | |
| |||
240 | 242 | | |
241 | 243 | | |
242 | 244 | | |
243 | | - | |
244 | 245 | | |
245 | 246 | | |
0 commit comments