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
0b0ace65
Verified
Commit
0b0ace65
authored
Sep 28, 2022
by
Valentin Bruch
Browse files
Options
Downloads
Patches
Plain Diff
fixed bugs from previous commits
parent
459a2a56
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
data_management.py
+1
-1
1 addition, 1 deletion
data_management.py
gen_data.py
+2
-0
2 additions, 0 deletions
gen_data.py
kondo.py
+6
-6
6 additions, 6 deletions
kondo.py
with
9 additions
and
7 deletions
data_management.py
+
1
−
1
View file @
0b0ace65
...
...
@@ -35,7 +35,7 @@ import sqlalchemy as db
import
random
import
warnings
import
settings
settings
.
logging
.
getLogger
(
'
sqlalchemy.engine
'
).
setLevel
(
settings
.
logging
.
DEBUG
)
# We use hashs as identifiers for data points in HDF5 files. These hashs are
# often not valid python names, which causes a warning. We ignore this warning.
warnings
.
simplefilter
(
"
ignore
"
,
tb
.
NaturalNameWarning
)
...
...
This diff is collapsed.
Click to expand it.
gen_data.py
+
2
−
0
View file @
0b0ace65
...
...
@@ -290,6 +290,8 @@ python -m frtrg_kondo.gen_data \\
settings
.
defaults
[
name
]
=
value
except
KeyError
:
pass
if
options
[
"
log_level
"
]
==
"
DEBUG
"
:
settings
.
logging
.
getLogger
(
"
sqlalchemy.engine
"
).
setLevel
(
settings
.
logging
.
INFO
)
settings
.
defaults
.
logger
.
setLevel
(
options
.
pop
(
"
log_level
"
))
settings
.
defaults
.
update_globals
()
...
...
This diff is collapsed.
Click to expand it.
kondo.py
+
6
−
6
View file @
0b0ace65
...
...
@@ -966,15 +966,15 @@ class Kondo:
### Full current, also includes AC current
if
self
.
resonant_dc_shift
==
0
:
# TODO: implement this with resonant shift
mu
=
np
.
zeros
((
2
*
nmax
+
1
,
2
*
nmax
+
1
),
dtype
=
np
.
complex128
)
mu
[
np
.
diag_indices
(
2
*
nmax
+
1
)]
=
self
.
vdc
mu
=
np
.
zeros
((
2
*
self
.
nmax
+
1
,
2
*
self
.
nmax
+
1
),
dtype
=
np
.
complex128
)
mu
[
np
.
diag_indices
(
2
*
self
.
nmax
+
1
)]
=
self
.
vdc
if
self
.
fourier_coef
is
None
:
mu
[
np
.
arange
(
2
*
nmax
),
np
.
arange
(
1
,
2
*
nmax
+
1
)]
=
self
.
vac
/
2
mu
[
np
.
arange
(
1
,
2
*
nmax
+
1
),
np
.
arange
(
2
*
nmax
)]
=
self
.
vac
/
2
mu
[
np
.
arange
(
2
*
self
.
nmax
),
np
.
arange
(
1
,
2
*
self
.
nmax
+
1
)]
=
self
.
vac
/
2
mu
[
np
.
arange
(
1
,
2
*
self
.
nmax
+
1
),
np
.
arange
(
2
*
self
.
nmax
)]
=
self
.
vac
/
2
else
:
for
i
,
f
in
enumerate
(
self
.
fourier_coef
,
1
):
mu
[
np
.
arange
(
2
*
nmax
+
1
-
i
),
np
.
arange
(
i
,
2
*
nmax
+
1
)]
=
f
mu
[
np
.
arange
(
i
,
2
*
nmax
+
1
),
np
.
arange
(
2
*
nmax
+
1
-
i
)]
=
f
.
conjugate
()
mu
[
np
.
arange
(
2
*
self
.
nmax
+
1
-
i
),
np
.
arange
(
i
,
2
*
self
.
nmax
+
1
)]
=
f
mu
[
np
.
arange
(
i
,
2
*
self
.
nmax
+
1
),
np
.
arange
(
2
*
self
.
nmax
+
1
-
i
)]
=
f
.
conjugate
()
mu
=
RGfunction
(
self
.
global_properties
,
mu
,
symmetry
=-
1
)
self
.
gammaL
=
mu
@
self
.
deltaGammaL
.
reduced
()
else
:
...
...
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