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
7b56e481
Commit
7b56e481
authored
May 17, 2024
by
Antonio Manesco
Browse files
Options
Downloads
Patches
Plain Diff
we don't need to return data here
parent
12f96175
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!8
Builder fixes
Pipeline
#181676
passed
May 17, 2024
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
meanfi/tests/test_kwant.py
+8
-4
8 additions, 4 deletions
meanfi/tests/test_kwant.py
with
8 additions
and
4 deletions
meanfi/tests/test_kwant.py
+
8
−
4
View file @
7b56e481
...
...
@@ -42,7 +42,7 @@ def test_kwant_conversion(seed):
random_tb
,
list
(
dummy_tb
.
sites
()),
dummy_tb
.
symmetry
.
periods
)
# convert builder back to tb and compare
random_builder_tb
=
builder_to_tb
(
random_builder
,
return_data
=
True
)
random_builder_tb
=
builder_to_tb
(
random_builder
)
compare_dicts
(
random_tb
,
random_builder_tb
)
...
...
@@ -107,13 +107,17 @@ def test_kwant_supercell(seed):
site1
,
site2
=
site_pair
[
0
]
if
site1
==
site2
:
assert
np
.
isclose
(
random_builder
[
site1
](
site
=
site1
,
alpha
=
params
[
"
alpha
"
],
beta
=
params
[
"
beta
"
]),
random_builder
[
site1
](
site
=
site1
,
alpha
=
params
[
"
alpha
"
],
beta
=
params
[
"
beta
"
]
),
random_builder_test
[
site1
],
).
all
()
else
:
try
:
assert
np
.
isclose
(
random_builder
[
site1
,
site2
](
site1
,
site2
,
gamma
=
params
[
"
gamma
"
],
delta
=
params
[
"
delta
"
]),
random_builder
[
site1
,
site2
](
site1
,
site2
,
gamma
=
params
[
"
gamma
"
],
delta
=
params
[
"
delta
"
]
),
random_builder_test
[
site1
,
site2
],
).
all
()
except
KeyError
:
...
...
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