Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
MeanFi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Quantum Tinkerer
MeanFi
Merge requests
!8
Builder fixes
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Builder fixes
builder_fixes
into
main
Overview
17
Commits
18
Pipelines
17
Changes
1
Merged
Kostas Vilkelis
requested to merge
builder_fixes
into
main
10 months ago
Overview
17
Commits
18
Pipelines
17
Changes
1
Expand
Address issues related to interfacing with kwant, such as qt/kwant-scf#10 and qt/kwant-scf#9.
0
0
Merge request reports
Viewing commit
add7d62e
Prev
Next
Show latest version
1 file
+
2
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
add7d62e
assign site dof properly
· add7d62e
Antonio Manesco
authored
10 months ago
meanfi/tests/test_kwant.py
+
2
−
2
Options
@@ -29,10 +29,10 @@ def test_kwant_conversion(seed):
dummy_tb
=
kwant
.
Builder
(
kwant
.
TranslationalSymmetry
(
*
n_cells
*
lattice
.
prim_vecs
))
for
site
in
range
(
sites_in_cell
):
for
sublattice
in
lattice
.
sublattices
:
for
i
,
sublattice
in
enumerate
(
lattice
.
sublattices
)
:
for
n
in
range
(
n_cells
):
dummy_tb
[
sublattice
(
site
,
*
[
n
for
_
in
range
(
ndim
-
1
)])]
=
(
np
.
eye
(
sum
(
ndof_per_site
)
)
*
2
np
.
eye
(
ndof_per_site
[
i
]
)
*
2
)
# generate random and generate builder from it
Loading