Repository navigation
Btd green rework - #1025
Merged
Merged
Btd green rework#1025
Conversation
| f"{self.__class__.__name__}(permute='electrode') requires at most 2 electrodes" | ||
| ) | ||
| kwargs = dict(zip(("start", "end"), dense)) | ||
| permute = btd_partition(csr, method=permute, dense=dense, **kwargs) |
| import re | ||
| from abc import ABC, abstractmethod | ||
| from collections.abc import Mapping | ||
| from typing import Literal, Optional, Self |
Comment on lines
+22
to
+32
| from .test_electrode import ( | ||
| ETA, | ||
| NCELL, | ||
| K, | ||
| _cell_orbs, | ||
| _electrode, | ||
| _electrodes, | ||
| _expand, | ||
| _reference, | ||
| _system, | ||
| ) |
zerothi
force-pushed
the
btd-green-rework
branch
3 times, most recently
from
October 12, 2026 10:45
a941baa to
e362d80
Compare
The code was done in Cython for improved performance. It still hasn't been checked in the code for DeviceGreen that is to come. Assisted-by: Claude:claude-opus-5-5
zerothi
force-pushed
the
btd-green-rework
branch
from
October 12, 2026 12:19
6e6d0ea to
005dd36
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1025 +/- ##
==========================================
- Coverage 86.45% 86.13% -0.32%
==========================================
Files 419 422 +3
Lines 55495 57335 +1840
==========================================
+ Hits 47979 49387 +1408
- Misses 7516 7948 +432 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Also clarified the API here and there. Signed-off-by: Nick Papior <nickpapior@gmail.com> Assisted-by: claude-code:claude-opus-5.5 forgot to add the tests Signed-off-by: Nick Papior <nickpapior@gmail.com> Assisted-by: claude-code:claude-opus-5.5
The new electrode implementations are easier in the API configuration. Tests are still underway, and should be done. Now the devicegreen uses electrodes to read the data. And then it tries to figure out where to place the stuff. Signed-off-by: Nick Papior <nickpapior@gmail.com> Assisted-by: claude-code:claude-opus-5.5 streamlined the permutebtd class Also cleaned the internal namedtuple. Signed-off-by: Nick Papior <nickpapior@gmail.com> Assisted-by: claude-code:claude-opus-5.5
Now fdfsile can read lists, and it can also read from block values. Simpler to extract default key-value pairs inside a block. Signed-off-by: Nick Papior <nickpapior@gmail.com> Assisted-by: claude-code:claude-opus-5.5 finalized certain tests for non-orthogonal basis sets Signed-off-by: Nick Papior <nickpapior@gmail.com> Assisted-by: claude-code:claude-opus-5.5
Signed-off-by: Nick Papior <nickpapior@gmail.com> Assisted-by: claude-code:claude-opus-5.5 Moved pivot to permute, better name Also added eta to str representation of self-energies. Signed-off-by: Nick Papior <nickpapior@gmail.com> Assisted-by: claude-code:claude-opus-5.5
Simpler Python API allowed easier pure Python NEGF calculations. Made the permutation stuff orb/atom agnostic. Now the callee has to decide what it passes. Fully implemented the downfolding algorithm for NEGF without any restrictions on the electrode region. It can do, no downfolding, full downfolding, or partial electrode downfolding. Full reading of fdf with checks and assertions here and there. This still needs some more careful checks, but should be more-or-less ready. Amended documentation for end-users so its simpler to get something up and running! Signed-off-by: Nick Papior <nickpapior@gmail.com> Assisted-by: claude-code:claude-opus-5-5 added changelogs Signed-off-by: Nick Papior <nickpapior@gmail.com> Assisted-by: claude-code:claude-opus-5-5 removed reverse test for cuthill_mckee added importorskip to netcdf for the tests requiring it forgot the final importorskip
zerothi
force-pushed
the
btd-green-rework
branch
from
October 12, 2026 12:59
3d8758a to
90af313
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
docs/changes/<num>.<type>.rst