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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Quantum Tinkerer
MeanFi
Commits
add7d62e
Commit
add7d62e
authored
May 17, 2024
by
Antonio Manesco
Browse files
Options
Downloads
Patches
Plain Diff
assign site dof properly
parent
9fdc0c28
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!8
Builder fixes
Pipeline
#181628
failed
May 17, 2024
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
meanfi/tests/test_kwant.py
+2
-2
2 additions, 2 deletions
meanfi/tests/test_kwant.py
with
2 additions
and
2 deletions
meanfi/tests/test_kwant.py
+
2
−
2
View file @
add7d62e
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment