Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frtrglib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Valentin Bruch
frtrglib
Commits
bb17d3e3
Commit
bb17d3e3
authored
Jun 15, 2022
by
Valentin Bruch
Browse files
Options
Downloads
Patches
Plain Diff
bug fixes in plots and data management
parent
7a33b3fe
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
gen_data.py
+0
-2
0 additions, 2 deletions
gen_data.py
main.py
+5
-5
5 additions, 5 deletions
main.py
settings.py
+1
-1
1 addition, 1 deletion
settings.py
with
6 additions
and
8 deletions
gen_data.py
+
0
−
2
View file @
bb17d3e3
...
@@ -13,8 +13,6 @@ import argparse
...
@@ -13,8 +13,6 @@ import argparse
import
os
import
os
import
settings
import
settings
import
numpy
as
np
import
numpy
as
np
import
sys
import
inspect
def
gen_option_iter
(
options
,
verbose
=
False
):
def
gen_option_iter
(
options
,
verbose
=
False
):
...
...
...
...
This diff is collapsed.
Click to expand it.
main.py
+
5
−
5
View file @
bb17d3e3
...
@@ -183,11 +183,11 @@ def plot_comparison_relative(dm, omega, **trashoptions):
...
@@ -183,11 +183,11 @@ def plot_comparison_relative(dm, omega, **trashoptions):
def
plot_floquet_matrices
(
kondo
:
KondoImport
,
norm_min
=
1e-6
):
def
plot_floquet_matrices
(
kondo
:
KondoImport
,
norm_min
=
1e-6
):
fig
,
axes
=
plt
.
subplots
(
3
,
3
)
fig
,
axes
=
plt
.
subplots
(
3
,
3
)
axes
=
axes
.
flatten
()
axes
=
axes
.
flatten
()
gamma
L
=
kondo
.
gamma
L
gamma
=
kondo
.
gamma
idx
=
kondo
.
voltage_branches
if
gamma
L
.
ndim
==
3
else
...
idx
=
kondo
.
voltage_branches
if
gamma
.
ndim
==
3
else
...
try
:
try
:
axes
[
0
].
set_title
(
"
Γ
"
)
axes
[
0
].
set_title
(
"
Γ
"
)
img
=
axes
[
0
].
imshow
(
np
.
abs
(
kondo
.
gamma
[
idx
]),
norm
=
mplcolors
.
LogNorm
(
norm_min
))
img
=
axes
[
0
].
imshow
(
np
.
abs
(
gamma
[
idx
]),
norm
=
mplcolors
.
LogNorm
(
norm_min
))
fig
.
colorbar
(
img
,
ax
=
axes
[
0
])
fig
.
colorbar
(
img
,
ax
=
axes
[
0
])
except
AttributeError
:
except
AttributeError
:
pass
pass
...
@@ -199,7 +199,7 @@ def plot_floquet_matrices(kondo : KondoImport, norm_min=1e-6):
...
@@ -199,7 +199,7 @@ def plot_floquet_matrices(kondo : KondoImport, norm_min=1e-6):
pass
pass
try
:
try
:
axes
[
2
].
set_title
(
"
ΓL
"
)
axes
[
2
].
set_title
(
"
ΓL
"
)
img
=
axes
[
2
].
imshow
(
np
.
abs
(
gammaL
),
norm
=
mplcolors
.
LogNorm
(
norm_min
))
img
=
axes
[
2
].
imshow
(
np
.
abs
(
kondo
.
gammaL
),
norm
=
mplcolors
.
LogNorm
(
norm_min
))
fig
.
colorbar
(
img
,
ax
=
axes
[
2
])
fig
.
colorbar
(
img
,
ax
=
axes
[
2
])
except
AttributeError
:
except
AttributeError
:
pass
pass
...
@@ -211,7 +211,7 @@ def plot_floquet_matrices(kondo : KondoImport, norm_min=1e-6):
...
@@ -211,7 +211,7 @@ def plot_floquet_matrices(kondo : KondoImport, norm_min=1e-6):
pass
pass
try
:
try
:
axes
[
4
].
set_title
(
"
δΓ
"
)
axes
[
4
].
set_title
(
"
δΓ
"
)
img
=
axes
[
4
].
imshow
(
np
.
abs
(
kondo
.
deltaGamma
[
1
if
gamma
L
.
ndim
==
3
else
...]),
norm
=
mplcolors
.
LogNorm
(
norm_min
))
img
=
axes
[
4
].
imshow
(
np
.
abs
(
kondo
.
deltaGamma
[
1
if
gamma
.
ndim
==
3
else
...]),
norm
=
mplcolors
.
LogNorm
(
norm_min
))
fig
.
colorbar
(
img
,
ax
=
axes
[
4
])
fig
.
colorbar
(
img
,
ax
=
axes
[
4
])
except
AttributeError
:
except
AttributeError
:
pass
pass
...
...
...
...
This diff is collapsed.
Click to expand it.
settings.py
+
1
−
1
View file @
bb17d3e3
...
@@ -140,7 +140,7 @@ class GlobalFlags:
...
@@ -140,7 +140,7 @@ class GlobalFlags:
if
key
in
os
.
environ
:
if
key
in
os
.
environ
:
cls
.
defaults
[
key
]
=
type
(
value
)(
os
.
environ
[
key
])
cls
.
defaults
[
key
]
=
type
(
value
)(
os
.
environ
[
key
])
if
verbose
:
if
verbose
:
cls
.
default
[
'
logger
'
].
info
(
'
Updated from environment: %s = %s
'
%
(
key
,
cls
.
defaults
[
key
]))
cls
.
default
s
[
'
logger
'
].
info
(
'
Updated from environment: %s = %s
'
%
(
key
,
cls
.
defaults
[
key
]))
if
cls
.
defaults
[
'
USE_REFERENCE_IMPLEMENTATION
'
]:
if
cls
.
defaults
[
'
USE_REFERENCE_IMPLEMENTATION
'
]:
cls
.
defaults
[
'
IGNORE_SYMMETRIES
'
]
=
1
cls
.
defaults
[
'
IGNORE_SYMMETRIES
'
]
=
1
...
...
...
...
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
sign in
to comment